/* Site de apresentação da Eficaz Mentoria.
   Cores vêm do app (.ef-app-shell em packages/ui/src/styles/globals.css).
   Antes de mudar algo visual, leia ../ANTIPADROES.md. */

@font-face {
  font-family: "Futura Maxi";
  src: url("/fonts/futura-maxi-cg-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #102368;
  --navy-hover: #0f1b52;
  --ink: #111a3a;
  --text-2: #475069;
  --on-navy: #c9d4ea;
  --on-navy-2: #9aa6c1;
  --line: #dde5f3;
  --tint: #f5f7fc;
  --white: #ffffff;
  --display: "Futura Maxi", "Futura", "Trebuchet MS", sans-serif;
  --body: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #f5b942;
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

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

/* ---------- Topo ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand__mark {
  width: 51px;
  height: 34px;
  fill: currentColor;
}
.brand__name {
  font-family: var(--display);
  font-size: 0.8125rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero__login {
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.hero__login:hover {
  border-bottom-color: currentColor;
}

.hero__body {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 11vw, 128px);
  padding-bottom: clamp(72px, 11vw, 136px);
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.125rem);
  line-height: 1.04;
}

.hero__lead {
  max-width: 30em;
  margin-top: 28px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--on-navy);
}

.hero__targets {
  max-width: 40em;
  margin-top: 36px;
  font-size: 0.9375rem;
  color: var(--on-navy-2);
}

.hero .btn {
  margin-top: 40px;
}

/* A marca em tom sobre tom: mesma forma do logo, sem brilho nem degradê. */
.hero__watermark {
  position: absolute;
  right: -15vw;
  bottom: -8%;
  width: min(58vw, 840px);
  aspect-ratio: 615 / 410;
  height: auto;
  fill: #16297a;
  pointer-events: none;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--navy-hover);
}
.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover {
  background: #e6ecfa;
}

/* ---------- Blocos ---------- */

.block {
  padding-block: clamp(64px, 9vw, 112px);
}
.block--tint {
  background: var(--tint);
}

.block__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 48px;
  align-items: start;
}

.block h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.1;
  color: var(--navy);
}

.rows {
  margin: 0;
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.row dt {
  font-weight: 600;
  color: var(--ink);
}
.row dd {
  margin: 0;
  color: var(--text-2);
}

/* ---------- Planos ---------- */

.plans {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.plans th,
.plans td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.plans tbody tr:last-child th,
.plans tbody tr:last-child td {
  border-bottom: 0;
}
.plans thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
}
.plans tbody th {
  font-weight: 600;
}
.plans td:nth-child(2) {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.note {
  max-width: 40em;
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* ---------- Entrada ---------- */

.join p {
  max-width: 34em;
}
.join__team {
  margin-top: 16px;
  color: var(--text-2);
}
.join .btn {
  margin-top: 32px;
}

/* ---------- Rodapé ---------- */

.foot {
  border-top: 1px solid var(--line);
}
.foot__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 28px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.foot__mark {
  width: 30px;
  height: 20px;
  fill: var(--navy);
  flex: none;
}

/* ---------- Telas menores ---------- */

@media (max-width: 860px) {
  .block__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__watermark {
    right: -30vw;
    bottom: -4%;
    width: 110vw;
  }
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 0;
  }

  .plans,
  .plans tbody,
  .plans tr,
  .plans th,
  .plans td {
    display: block;
  }
  .plans thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .plans tbody tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .plans tbody tr:last-child {
    border-bottom: 0;
  }
  .plans th,
  .plans td {
    padding: 0;
    border: 0;
  }
  .plans tbody th {
    font-size: 1.0625rem;
    margin-bottom: 6px;
  }
  .plans td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
  }
  .plans td::before {
    content: attr(data-label);
    font-weight: 400;
    color: var(--text-2);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
