/* Diagium — landing page (Figma: Diagium / Landing page / V3) */

/* Fontes servidas pelo próprio site (Google Fonts, licença OFL). Host Grotesk é variável: um arquivo cobre 400 e 500. */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Yrsa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/yrsa-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Yrsa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/yrsa-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #091a68;
  --blue: #1d46de;
  --green: #a5fc96;
  --cream: #fffcf7;
  --hero-bg: #fff9f1;
  --mist: #eaeefa;
  --muted: #485580;
  --pink: #fce7f1;
  --hairline: #cfd5ee;

  --serif: "Yrsa", Georgia, "Times New Roman", serif;
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 96px;
  --section-y: 80px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
hr { border: 0; margin: 0; }
section[id] { scroll-margin-top: var(--nav-h, 113px); }
@media (max-width: 900px) { section[id] { --nav-h: 69px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--green); color: var(--navy); font-size: 15px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .nav :focus-visible { outline-color: var(--green); }

.container {
  width: 100%;
  max-width: calc(1248px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.only-mobile { display: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--green { color: var(--green); }

.h-66, .h-60, .h-44, .h-42, .h-40, .h-36, .h-32, .h-30 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}
.h-66 { font-size: 66px; }
.h-60 { font-size: 60px; }
.h-44 { font-size: 44px; }
.h-42 { font-size: 42px; }
.h-40 { font-size: 40px; }
.h-36 { font-size: 36px; }
.h-32 { font-size: 32px; }
.h-30 { font-size: 30px; }

.body { font-size: 19px; line-height: 1.4; }
.small { font-size: 15px; line-height: 1.45; }
.muted { color: var(--muted); }

.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-22 { display: flex; flex-direction: column; gap: 22px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-36 { display: flex; flex-direction: column; gap: 36px; }
.stack-paragraphs > * + * { margin-top: 1.4em; }

.split { display: grid; align-items: start; }
.split--72 { grid-template-columns: 610fr 566fr; gap: 72px; }
.split--64 { gap: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 24px;
  border: 0;
  border-radius: 8px;
  font: 500 16px/1.45 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--green); color: var(--navy); }
.btn--secondary { background: var(--navy); color: var(--cream); align-self: flex-start; }
.btn--secondary:hover { background: #0e2385; filter: none; }
.btn--block { width: 100%; align-self: stretch; }

.link-arrow { font-size: 16px; line-height: 1.45; color: var(--navy); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 01 Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}
.logo { position: relative; display: inline-flex; align-items: flex-start; gap: 12.4px; flex-shrink: 0; }
.logo__iso { width: 23.08px; height: auto; margin-top: .56px; }
.logo__word { width: 174.53px; height: auto; }
.nav__menu { display: flex; gap: 30px; width: 560px; font-size: 15px; line-height: 1.45; color: var(--cream); }
.nav__menu a:hover { color: var(--green); }
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; line-height: 1; letter-spacing: .04em; }
.lang a {
  padding: 7px 8px;
  border-radius: 6px;
  color: rgba(255, 252, 247, .6);
  transition: color .2s ease, background-color .2s ease;
}
.lang a:hover { color: var(--cream); }
.lang a[aria-current="page"] { color: var(--cream); background: rgba(255, 252, 247, .12); }

/* ---------- 02 Hero ---------- */
.hero { background: var(--hero-bg); }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 80px;
  padding-bottom: 40px;
  text-align: center;
}
.hero__eyebrow { font-size: 11px; letter-spacing: .06em; }
.hero__title {
  max-width: 1152px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 78px;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero__context { display: flex; flex-direction: column; gap: 6px; max-width: 660px; font-size: 19px; line-height: 28px; margin-top: -2px; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 24px 32px; flex-wrap: wrap; }
.hero__divider { width: 100%; height: 1px; background: var(--hairline); opacity: .5; }
.hero__services { font-size: 13px; line-height: 1.45; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--cream); }

/* 03 Problema */
.problem .container { display: flex; flex-direction: column; gap: 36px; }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.problem__item {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 28px 24px 0;
  border-top: 1px solid var(--mist);
}
.insight {
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px;
  border-radius: 20px;
  background: var(--mist);
}

/* 04 Diagnóstico */
.diag__title { max-width: 1110px; }
.diag__cols { grid-template-columns: 550fr 634fr; }
.card { border-radius: 16px; padding: 40px; }
.card--cream { background: var(--cream); }

/* 05 Soluções */
.solutions__title { max-width: 960px; }
.solutions__intro { max-width: 830px; }
.solutions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution {
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px;
  border: 1px solid var(--mist);
  border-radius: 16px;
  background: var(--cream);
}
.solution--pink { background: var(--pink); }
.solution,
.invite {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .25s ease;
}
@media (hover: hover) {
  .solution:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -24px rgba(9, 26, 104, .35);
  }
  .solution:hover .solution__icon { transform: scale(1.08) rotate(-4deg); }
  .invite:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(9, 26, 104, .35); }
  .invite:hover .invite__art img { transform: translateX(-3%); }
}
.solution__icon,
.invite__art img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.solution__icon { width: 42px; height: auto; }

.invite {
  display: flex; flex-direction: column;
  border-radius: 40px;
  background: var(--mist);
  overflow: hidden;
}
.invite__art {
  position: relative;
  aspect-ratio: 612 / 378.474;
  background: var(--blue);
  overflow: hidden;
}
/* Recorte do grafismo igual ao Figma (inset -11.85% -29.9% -30.4% -27.63%) */
.invite__art img {
  position: absolute;
  top: -11.85%;
  left: -27.63%;
  width: 157.53%;
  height: 142.25%;
  max-width: none;
}
.invite__body { padding: 36px; }

/* 06 Metodologia */
.method__intro { max-width: 800px; color: var(--mist); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 22px; padding-top: 22px; border-top: 1px solid var(--blue); color: var(--mist); }
.step .h-36 { color: var(--cream); }
.step__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--green); }

/* 07 Continuidade */
.cont { grid-template-columns: 560fr 624fr; }
.cont__photo { width: 100%; aspect-ratio: 560 / 400; object-fit: cover; border-radius: 28px; }

/* 08 Para quem */
.who .split--64 { grid-template-columns: 540fr 644fr; }
.who__card {
  display: flex; flex-direction: column; gap: 24px;
  padding: 40px;
  border-radius: 28px;
  background: var(--navy);
  color: var(--cream);
}
.checklist { display: flex; flex-direction: column; gap: 24px; font-size: 19px; line-height: 1.4; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 16px; }
.checklist li::before { content: "↗"; color: var(--green); }
.divider { height: 1px; background: var(--mist); }
.who__other { max-width: 960px; }

/* 09 FAQ */
.faq { padding-top: 56px; }
.faq .split--64 { grid-template-columns: 400fr 784fr; }
.faq__list { display: flex; flex-direction: column; gap: 24px; }
.faq__list { gap: 0; border-bottom: 1px solid var(--mist); }
.faq__item { border-top: 1px solid var(--mist); }
.faq__list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  list-style: none;
  cursor: pointer;
  font-size: 19px; line-height: 1.4;
  color: var(--navy);
  transition: color .2s ease;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--blue); }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--mist);
  transition: background-color .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  border-radius: 1px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open]:not([data-closing="true"]) .faq__icon { background: var(--navy); transform: rotate(180deg); }
.faq__item[open]:not([data-closing="true"]) .faq__icon::before,
.faq__item[open]:not([data-closing="true"]) .faq__icon::after { background: var(--cream); }
.faq__item[open]:not([data-closing="true"]) .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 52px 24px 0; font-size: 19px; line-height: 1.4; color: var(--muted); }

/* 10 Contato */
.contact .split--64 { grid-template-columns: 540fr 644fr; }
.contact__mist { color: var(--mist); }
.contact__green { color: var(--green); }
.form-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--navy);
}
.form { display: flex; flex-direction: column; gap: 24px; }
.form__lead { font-size: 16px; line-height: 1.45; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.field input,
.field textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--mist);
  color: var(--navy);
  font: 400 15px/1.45 var(--sans);
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { height: 98px; min-height: 98px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #d43c3c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { font-size: 14px; color: #c42f2f; }
.form__legal { font-size: 12px; line-height: 1.45; color: var(--muted); }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-success { display: flex; flex-direction: column; gap: 20px; }
.form-success[hidden],
.form[hidden] { display: none; }
.form-success:focus { outline: none; }

/* 11 Footer */
.footer { background: var(--cream); color: var(--navy); padding: 48px 0 52px; }
.footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer__rule { height: 1px; background: var(--blue); }
.footer__inner { display: grid; grid-template-columns: 740fr 388fr; gap: 120px; align-items: start; }
.footer__brand img { width: 196px; }
.footer__text { max-width: 570px; font-size: 16px; line-height: 1.4; }
.footer__links { display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.45; }
.footer__links a { width: fit-content; transition: color .2s ease; }
.footer__links a:hover { color: var(--blue); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
}
.footer__copy { font-size: 12px; line-height: 1.45; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.social a:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* 404 */
.not-found { min-height: calc(100vh - 113px); justify-content: center; }

/* Política de privacidade */
.policy__inner { max-width: calc(800px + var(--gutter) * 2); }
.policy h2 { margin-top: 24px; }
.policy strong { color: var(--navy); font-weight: 500; }
.policy__list { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; list-style: disc; }
.policy__link { text-decoration: underline; text-underline-offset: 3px; }
.policy__link:hover { color: var(--blue); }

/* ---------- Entrada ao rolar (ativada por main.js) ---------- */
.reveal-ready [data-reveal] {
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }
/* Cards com hover: depois de aparecer, voltam às transições próprias */
.reveal-ready .solution[data-reveal-done],
.reveal-ready .invite[data-reveal-done] {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .25s ease, opacity .7s ease;
  transition-delay: 0ms;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 56px; }
  .nav__menu { width: auto; }
  .hero__title { font-size: 68px; }
}

@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 900px) {
  /* Valores do frame "Diagium / Landing page / Mobile / V3" (390px) */
  :root { --gutter: 24px; --section-y: 56px; }

  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  p.only-mobile { display: block; }

  .nav__inner { padding-block: 22px; }
  .logo { gap: 9px; }
  .logo__iso { width: 16.7px; margin-top: .41px; }
  .logo__word { width: 126.3px; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: block; font-size: 14px; line-height: 1.45; color: var(--cream); }
  .nav__actions { gap: 14px; }
  .lang { font-size: 12px; }
  .lang a { padding: 6px; }

  .hero__inner { padding-top: 48px; padding-bottom: 32px; gap: 24px; }
  .hero__eyebrow { font-size: 10px; }
  .hero__title { font-size: 46px; letter-spacing: -.01em; }
  .hero__context { gap: 8px; font-size: 17px; line-height: 25px; margin-top: 0; }
  .hero__actions { flex-direction: column; width: 100%; gap: 16px; margin-top: 4px; }
  .hero__actions .btn { width: 100%; }
  .hero__services--mobile { text-transform: none; font-size: 14px; line-height: 1.45; }

  .h-66, .h-60 { font-size: 44px; }
  .h-44 { font-size: 34px; }
  .h-30 { font-size: 27px; }
  .body, .checklist, .faq__list summary, .faq__answer p { font-size: 17px; }
  .faq__answer p { padding-right: 0; }

  .stack-36 { gap: 28px; }
  .split,
  .split--72,
  .diag__cols,
  .cont,
  .who .split--64,
  .faq .split--64,
  .contact .split--64 { grid-template-columns: 1fr; gap: 32px; }

  .problem .split--72 { gap: 24px; }
  .problem__grid,
  .solutions__grid { grid-template-columns: 1fr; }
  .problem__item { padding-right: 0; }
  .problem__item .h-36 { font-size: 31px; }
  .insight { padding: 24px; margin-top: -8px; }
  .insight .h-40 { font-size: 30px; }

  .card, .who__card, .form-card { padding: 24px; }
  .diag__card .h-60 { font-size: 42px; }

  .solution { padding: 26px; }
  .solution--pink { background: var(--mist); }
  .solution .h-40 { font-size: 34px; }
  .solution__icon { width: 36px; }
  .invite { border-radius: 30px; }
  .invite__art { aspect-ratio: 342 / 212; }
  .invite__body { padding: 24px; }
  .invite .h-42 { font-size: 33px; }
  .invite .btn { align-self: stretch; }

  .cont__photo { aspect-ratio: 342 / 256; border-radius: 24px; }
  .who__left .btn { align-self: stretch; }
  .steps { grid-template-columns: 1fr; row-gap: 24px; }

  .faq { padding-top: 40px; }
  .form .h-42 { font-size: 34px; }

  .footer { padding: 48px 0 40px; }
  .footer .container { gap: 36px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
}
