/* ============================================================
   Pense Hiperaldo — Landing científico-educacional
   Fontes: Hammersmith One (display) + Nunito (corpo)
   ============================================================ */

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

* { margin: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --navy:      #1c2541;
  --navy-2:    #131a2e;
  --slate:     #3a506b;
  --orange:    #f4a261;
  --orange-600:#ee8b3f;
  --orange-700:#e07a2f;
  --gold:      #fcc240;
  --beige:     #f5f5dc;
  --cream:     #f7f4e6;
  --cream-card:#fdfcf3;
  --muted:     #aeb6c1;
  --line:      #eae6d6;
  --line-soft: #edeef1;
  --white:     #ffffff;
  --bg-soft:   #fafafa;

  --maxw: 1140px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(28,37,65,.06);
  --shadow-md: 0 12px 34px rgba(28,37,65,.10);
  --shadow-orange: 0 10px 26px rgba(238,138,63,.28);

  --font-display: "Hammersmith One", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.12;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 70px 0; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-title {
  font-size: clamp(30px, 4vw, 38px);
  margin-bottom: 14px;
}
.section-sub { font-size: 18px; color: var(--slate); }
.eyebrow { color: var(--orange-600); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { background: var(--orange-600); box-shadow: 0 12px 30px rgba(238,138,63,.38); }

.btn--ghost-light {
  background: transparent;
  color: var(--beige);
  border-color: rgba(245,245,220,.55);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

.btn--outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange-700); }

.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--beige);
  font-weight: 600;
  font-size: 15px;
  opacity: .95;
  transition: opacity .15s ease;
}
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--beige);
  margin: 5px 0;
  border-radius: 2px;
  transition: .2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f9bd4d 0%, #f4a261 48%, #ec8438 100%);
  overflow: hidden;
}
.hero::before { /* subtle grid pattern */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: .5;
  mask-image: radial-gradient(120% 100% at 20% 30%, #000 40%, transparent 90%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 30px;
  padding-top: 132px;
  padding-bottom: 76px;
}
.hero__inner > * { min-width: 0; }
.hero__content { min-width: 0; }
.hero__title {
  font-size: clamp(40px, 5.4vw, 68px);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -.5px;
}
.hero__title .accent { color: var(--orange-700); }
.hero__lead {
  margin-top: 20px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--slate);
  max-width: 30ch;
  font-weight: 600;
}
.hero__card {
  margin-top: 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(2px);
}
.hero__card p { font-size: 15.5px; color: var(--navy); }
.hero__stat {
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 19px;
  color: var(--orange-700);
  line-height: 1.3;
}
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.9); }

.hero__art {
  position: relative;
  justify-self: end;
}
.hero__art img {
  width: 100%;
  max-width: 620px;
  border-radius: 18px;
  /* fade left edge into the hero gradient to hide the baked background */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
}

/* ============================================================
   O PROBLEMA
   ============================================================ */
.problema { background: var(--white); }
.problema__text { max-width: 900px; font-size: 18px; margin-bottom: 40px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}
.stat-card {
  background: linear-gradient(140deg, #f6ad55, #ec8438);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-orange);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card__label { font-size: 14.5px; font-weight: 700; opacity: .95; }

.note-strong {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 16px;
  color: var(--navy);
  max-width: 900px;
}
.note-strong b { color: var(--orange-700); }

.mascot-float { position: absolute; pointer-events: none; z-index: 1; }
.problema { overflow: hidden; }
.ferramentas { overflow: hidden; }

/* ============================================================
   RECONHEÇA O PACIENTE
   ============================================================ */
.reconheca { background: var(--cream); }
.criteria { display: grid; gap: 14px; max-width: 960px; }
.criterion {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 16px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 16px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.criterion:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.criterion__num {
  font-family: var(--font-display);
  color: var(--orange-700);
  font-size: 22px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(244,162,97,.14);
  border-radius: 50%;
}
.criterion p { font-size: 16px; color: var(--slate); }
.criterion b { color: var(--navy); }

.highlight-box {
  margin-top: 26px;
  background: linear-gradient(120deg, #fdfcf3, #fbf3e3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 960px;
}
.highlight-box h3 { color: var(--orange-700); font-size: 24px; margin-bottom: 6px; }
.highlight-box p { color: var(--navy); font-size: 18px; }

.reconheca__cta { margin-top: 26px; }
.download-hint { display:block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ============================================================
   FERRAMENTAS
   ============================================================ */
.ferramentas { background: var(--bg-soft); }
.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
}
.tool-card {
  background: linear-gradient(160deg, #fdfcf3, #f7f4e2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.tool-card__icon { font-size: 22px; }
.tool-card h3 { font-size: 20px; }
.tool-card__tag { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.tool-block { margin-top: 12px; }
.tool-block .k {
  display: block;
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  color: var(--orange-700); text-transform: uppercase; margin-bottom: 3px;
}
.tool-block p { font-size: 14.5px; color: var(--slate); }

/* ============================================================
   CONSELHO CIENTÍFICO (dark)
   ============================================================ */
.conselho {
  background: radial-gradient(120% 120% at 80% 0%, #24304f 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: var(--beige);
}
.conselho .section-title { color: var(--white); }
.conselho .section-sub { color: var(--muted); }
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.board__member img {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(244,162,97,.5);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.board__member h3 { color: var(--white); font-size: 22px; line-height: 1.2; }
.board__member span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ============================================================
   BASE CIENTÍFICA
   ============================================================ */
.base { background: var(--white); }
.refs { display: grid; gap: 10px; max-width: 960px; }
.ref-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14.5px;
}
.ref-item::before { content: "▴"; color: var(--orange); font-size: 18px; line-height: 1.4; }

/* ============================================================
   ATUALIZAÇÕES MENSAIS (dark)
   ============================================================ */
.newsletter {
  background: radial-gradient(120% 120% at 20% 0%, #24304f 0%, var(--navy) 50%, var(--navy-2) 100%);
  color: var(--beige);
  text-align: center;
}
.newsletter .section-title { color: var(--white); }
.newsletter .section-sub { color: var(--muted); }
.news-card {
  max-width: 720px;
  margin: 30px auto 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.news-card > p { color: rgba(255,255,255,.9); font-size: 16px; }
.news-benefits {
  list-style: none; padding: 0;
  margin: 22px auto;
  display: grid; gap: 10px;
  max-width: 460px;
  text-align: left;
}
.news-benefits li { color: var(--beige); font-size: 16px; }
.news-benefits li::before { content: "✓ "; color: var(--orange); font-weight: 800; }
.news-form { display: flex; gap: 10px; max-width: 480px; margin: 22px auto 0; }
.news-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.95);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
}
.news-form input::placeholder { color: #8b93a3; }
.news-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg-soft); }
.faq__head {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px;
}
.faq__head img { width: 130px; height: auto; flex-shrink: 0; }
.faq__head .section-sub { color: var(--slate); font-weight: 700; }
.faq-list { max-width: 940px; display: grid; gap: 12px; }
.faq-item {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--orange-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after { content: "+"; font-size: 24px; color: var(--orange); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease, padding .28s ease;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 20px; }
.faq-a p { color: var(--navy); font-weight: 600; font-size: 15.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #eef0f2;
  color: var(--slate);
  padding: 54px 0 30px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img.f-logo { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; }
.footer-brand .apoio { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.footer-brand .apoio span { line-height: 1; font-size: 14px; }
.footer-brand .apoio img { height: 38px; width: auto; display: block; }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; color: var(--navy); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col p { font-size: 14px; }
.footer-col a:hover { color: var(--orange-700); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #dfe2e6;
  font-size: 12.5px;
  color: #8a93a0;
}

/* ============================================================
   ACESSO EXCLUSIVO (página de confirmação)
   ============================================================ */
.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.access__form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 60px;
}
.access__brand img { height: 34px; margin-bottom: 34px; }
.form-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px 36px 38px;
}
.form-card h1 { font-size: 26px; text-align: center; margin-bottom: 12px; }
.form-card__sub { text-align: center; font-size: 16px; color: var(--slate); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 7px; }
.field input, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--cream-card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,162,97,.18);
  background: #fff;
}
.field input::placeholder { color: #9aa2ae; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.is-hidden { display: none !important; }
/* animação suave ao revelar o campo de registro */
#registroRow:not(.is-hidden) { animation: fieldReveal .25s ease; }
@keyframes fieldReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--navy); margin-bottom: 12px; cursor: pointer;
}
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--orange-600); flex-shrink: 0; }
.form-actions { margin-top: 22px; display: grid; gap: 12px; }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

.access__art-side {
  background: linear-gradient(160deg, #eef1f4 0%, #dfe4ea 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}
.access__art-side img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.access-back { margin-top: 22px; }
.access-back a { color: var(--orange-700); font-weight: 700; font-size: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; right: 24px; left: 24px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--navy); border-radius: 12px; padding: 12px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { color: var(--beige); padding: 12px 14px; border-radius: 8px; }
  .nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
  .nav-toggle { display: block; }

  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__art { justify-self: center; margin-top: 12px; width: 100%; }
  .hero__art img { -webkit-mask-image: none; mask-image: none; max-width: 100%; width: auto; margin-inline: auto; border-radius: 14px; }
  .hero__lead { max-width: none; }
  .hero__card { max-width: none; }

  .stats { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; gap: 34px; }

  .access { grid-template-columns: 1fr; min-height: 0; }
  /* Altura concreta no mobile: evita o colapso de height:100% no iOS/WebKit */
  .access__art-side {
    order: -1;
    height: 38vh;
    min-height: 230px;
    max-height: 360px;
  }
  .access__art-side img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 20%;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mascot-float { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px 30px; }
  .news-form { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
