/* MAARTORI · Certificação v2 · revisão visual */

@media (max-width: 768px) { .splash { display: none !important; } }

.cert-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}
.cert-hero-img {
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero.jpg') center / cover no-repeat;
  transform: scale(1.025);
}
.cert-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,17,20,.58), rgba(15,17,20,.82)),
    radial-gradient(ellipse at 50% 38%, rgba(138,151,108,.22), transparent 56%);
}
.cert-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  padding-top: 120px;
  padding-bottom: 72px;
  text-align: center;
}
.cert-hero .label { justify-content: center; color: var(--sage-l); }
.cert-hero .label-dot { background: var(--sage-l); }
.cert-hero h1 {
  max-width: 17ch;
  margin: 0 auto 24px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(42px, 6.1vw, 84px);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}
.cert-hero h1 em { color: var(--sage-l); font-weight: 400; }
.cert-hero .lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,.84);
  font-size: clamp(16px,1.25vw,20px);
  line-height: 1.6;
}
.cert-hero-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, max-content));
  justify-content: center;
  gap: 12px;
  margin: 34px auto 0;
}
.cert-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .28s ease, background .28s ease, box-shadow .28s ease;
}
.cert-hero-pill i { color: var(--sage-l); font-size: 17px; }
.cert-hero-pill:hover {
  transform: translateY(-5px);
  border-color: rgba(138,151,108,.78);
  background: rgba(110,123,82,.26);
  box-shadow: 0 16px 32px rgba(15,17,20,.3);
}

.cert-intro { padding: 104px 0; background: var(--white); }
.cert-intro-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.cert-intro-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--gray-100);
  border-radius: 22px;
  background: var(--surface);
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.cert-intro-card:hover {
  transform: scale(1.035);
  border-color: var(--sage-d);
  box-shadow: 0 16px 38px rgba(74,85,50,.16);
}
.cert-intro-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--deep);
}
.cert-intro-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 55%,rgba(42,44,47,.42)); }
.cert-intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transition: transform .5s cubic-bezier(.4,0,.2,1), filter .5s ease; }
.cert-intro-media--network img { object-position: center 50%; }
.cert-intro-card:hover .cert-intro-media img { transform: scale(1.055); filter: saturate(1.06); }
.cert-intro-body { flex: 1; padding: 32px 36px 36px; }
.cert-card-kicker,
.cert-step-label {
  margin: 4px 0 10px !important;
  color: var(--sage-d) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cert-intro-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px,2.6vw,38px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.cert-intro-body > p:last-child { margin: 0; color: var(--muted); line-height: 1.72; }

.cert-levels { padding: 104px 0; background: var(--surface); }
.cert-section-header {
  max-width: 780px !important;
  margin: 0 auto 48px !important;
  text-align: center;
}
.cert-section-header .label { justify-content: center; color: var(--sage-d); }
.cert-section-header h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(36px,4vw,54px);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.cert-section-header > p:last-child { max-width: 100% !important; margin: 0 auto; }
.cert-level-list { display: flex; flex-direction: column; gap: 14px; max-width: 1080px; margin: 0 auto; }
.cert-level {
  overflow: hidden;
  border: 1.5px solid var(--gray-100);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(42,44,47,.04);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.cert-level:hover,
.cert-level.is-open { border-color: var(--sage-d); box-shadow: 0 14px 34px rgba(74,85,50,.13); }
.cert-level.is-open { transform: translateY(-2px); }
.cert-level-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.cert-level-heading { display: flex; align-items: center; gap: 20px; }
.cert-level-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--sage-d);
  font-family: var(--font-display);
  font-size: 25px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
.cert-level-heading small {
  display: block;
  margin-bottom: 3px;
  color: var(--sage-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cert-level-heading strong { color: var(--deep); font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.cert-level-trigger > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-size: 19px;
  transition: transform .3s ease, background .3s ease;
}
.cert-level-trigger[aria-expanded="true"] > i { transform: rotate(45deg); background: var(--sage-d); }
.cert-level-panel { display: grid; grid-template-rows: 0fr; padding: 0 28px; transition: grid-template-rows .35s ease, padding .35s ease; }
.cert-level-panel.is-open { grid-template-rows: 1fr; padding-bottom: 28px; }
.cert-level-inner {
  min-height: 0;
  overflow: hidden;
  margin: 0 -18px -18px;
  padding: 0 18px 18px;
  border-top: 1px dashed var(--gray-200);
}
.cert-requirement {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1.5px solid rgba(86,96,63,.32);
  border-radius: 14px;
  background: linear-gradient(135deg,rgba(110,123,82,.11),rgba(255,255,255,.74));
  box-shadow: 0 7px 20px rgba(74,85,50,.07);
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .28s ease, box-shadow .28s ease;
}
.cert-requirement:hover {
  transform: scale(1.03);
  border-color: var(--sage-d);
  box-shadow: 0 12px 28px rgba(74,85,50,.14);
}
.cert-requirement-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--sage-d); color: var(--white); font-size: 21px; }
.cert-requirement > div { display: flex; flex-direction: column; gap: 3px; }
.cert-requirement p { margin: 0 !important; color: var(--sage-d) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .14em; line-height: 1.4 !important; text-transform: uppercase; }
.cert-requirement strong { color: var(--deep); font-size: 14px; font-weight: 600; line-height: 1.45; }
.cert-requirement em { color: var(--muted); font-size: 12px; line-height: 1.4; }
.cert-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; }
.cert-benefits p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(42,44,47,.035);
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .28s ease, color .28s ease, box-shadow .28s ease;
}
.cert-benefits i { margin-top: 2px; color: var(--sage-d); font-size: 16px; }
.cert-benefits p:hover { transform: translateY(-8px); border-color: var(--sage-d); color: var(--deep); box-shadow: 0 12px 26px rgba(74,85,50,.14); }
.cert-benefits p:hover i { transform: scale(1.16); }
.cert-benefits i { transition: transform .28s ease; }
.cert-level--gold .cert-level-number { background: var(--deep); color: var(--sage-l); }

.cert-process { padding: 112px 0; background: var(--white); }
.cert-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px 86px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px;
  border-radius: 30px;
  background: var(--deep);
  box-shadow: 0 24px 70px rgba(42,44,47,.2);
  overflow: hidden;
}
.cert-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  min-height: 216px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.cert-step:hover { background: rgba(255,255,255,.09); border-color: rgba(138,151,108,.65); }
.cert-step--1::after,
.cert-step--3::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 87px;
  border-top: 1.5px dashed rgba(138,151,108,.72);
}
.cert-step--1::after { left: 100%; }
.cert-step--3::before { right: 100%; }
.cert-step--2::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  height: 23px;
  border-left: 1.5px dashed rgba(138,151,108,.72);
}
.cert-step--1::before,
.cert-step--2::before,
.cert-step--3::after,
.cert-step--4::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: var(--sage-l);
}
.cert-step--1::before { top: calc(50% - 4px); right: -5px; }
.cert-step--2::before { bottom: -5px; left: calc(50% - 4px); }
.cert-step--3::after { top: calc(50% - 4px); left: -5px; }
.cert-step--4::after { top: calc(50% - 4px); right: -5px; }
.cert-step--3 { grid-column: 2; grid-row: 2; }
.cert-step--4 { grid-column: 1; grid-row: 2; }
.cert-step-num {
  position: absolute;
  top: 15px;
  right: 22px;
  color: rgba(138,151,108,.25);
  font-family: var(--font-display);
  font-size: 68px;
  font-style: italic;
  line-height: 1;
}
.cert-step-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(138,151,108,.7);
  border-radius: 50%;
  color: var(--sage-l);
  font-size: 24px;
}
.cert-step > div:last-child { padding-top: 4px; }
.cert-step .cert-step-label { color: var(--sage-l) !important; }
.cert-step h3 { margin: 0 0 10px; color: var(--white); font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.cert-step > div:last-child > p:last-child { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.62; }

#gate .ei-modal { overflow: hidden; border: 1px solid rgba(138,151,108,.45); border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.35); }
#gate .ei-hero { background: var(--deep); }
#gate .ei-hero h2 { color: var(--white); font-family: var(--font-display); font-size: 34px; font-weight: 400; }
#gate .ei-hero .label { color: var(--sage-l); }
#gate .ei-body { background: var(--surface); }

@media (max-width: 900px) {
  .cert-intro-grid { grid-template-columns: 1fr; }
  .cert-intro-card { min-height: auto; }
  .cert-journey { gap: 18px; padding: 34px; }
  .cert-step--1::after, .cert-step--2::after, .cert-step--3::before,
  .cert-step--1::before, .cert-step--2::before, .cert-step--3::after, .cert-step--4::after { display: none; }
  .cert-step { grid-template-columns: 52px 1fr; padding: 24px; }
}

@media (max-width: 640px) {
  .cert-hero .container { padding: 108px 20px 54px; }
  .cert-hero h1 { font-size: clamp(39px,12vw,56px); }
  .cert-hero .lead { font-size: 15px; }
  .cert-hero-pills { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 9px; }
  .cert-hero-pill { min-width: 0; min-height: 64px; padding: 10px 9px; white-space: normal; font-size: 11.5px; line-height: 1.25; }
  .cert-hero-pill i { flex: 0 0 auto; }
  .cert-intro, .cert-levels, .cert-process { padding: 72px 0; }
  .cert-intro-card { min-height: 0; }
  .cert-intro-media { aspect-ratio: 16 / 9; }
  .cert-intro-body { padding: 26px 24px 30px; }
  .cert-section-header { margin-bottom: 34px !important; }
  .cert-level-trigger { padding: 19px 18px; }
  .cert-level-heading { gap: 13px; }
  .cert-level-number { width: 48px; height: 48px; flex-basis: 48px; font-size: 21px; }
  .cert-level-heading strong { font-size: 21px; }
  .cert-level-trigger > i { width: 36px; height: 36px; flex-basis: 36px; }
  .cert-level-panel { padding-left: 18px; padding-right: 18px; }
  .cert-level-panel.is-open { padding-bottom: 20px; }
  .cert-requirement { align-items: flex-start; padding: 15px; }
  .cert-benefits { grid-template-columns: 1fr; }
  .cert-journey { grid-template-columns: 1fr; padding: 18px; border-radius: 22px; }
  .cert-step, .cert-step--3, .cert-step--4 { grid-column: 1; grid-row: auto; min-height: 0; }
  .cert-step-num { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .cert-hero-pill, .cert-intro-card, .cert-level, .cert-requirement, .cert-benefits p, .cert-step, .cert-cta-final .cta-band, .cert-cta-final .btn { transition: none; transform: none !important; animation: none !important; }
}
