/* ──────────────────────────────────────────────────────────
   FIHAN · Playbook Landing
   Mirror dos padrões de styles.css do site principal
   ────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fihan-dark);
  color: var(--fihan-text);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease, color 200ms ease;
  overflow-x: hidden;
}

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

::selection { background: var(--fihan-green); color: var(--fihan-dark); }

/* ─── Layout primitives ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid rgba(115, 128, 119, 0.2);
}

.section--center { text-align: center; }
.section--center .lede { margin-left: auto; margin-right: auto; }
.section--alt { background: var(--fihan-input-bg); }

.section__head { margin-bottom: 56px; max-width: 720px; }

/* ─── Typography (mesmas classes do site principal) ─────── */
.display {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  color: var(--fihan-text);
  overflow-wrap: break-word;
}

.display--xl { font-size: clamp(44px, 6.5vw, 72px); }
.display__accent { color: var(--fihan-green); }
.display__muted  { color: var(--fihan-divider); }

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fihan-text-bright);
  max-width: 640px;
  margin: 0 0 24px;
}
.lede strong { color: var(--fihan-text); font-weight: 500; }

.muted { color: var(--fihan-divider); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fihan-green);
}

.card-eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fihan-green);
  margin: 0;
}

/* ─── Announcement bar ──────────────────────────────────── */
.announce {
  background: var(--fihan-input-bg);
  border-bottom: 1px solid rgba(115, 128, 119, 0.2);
  padding: 12px 0;
  font-size: 13px;
}

.announce__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.announce__msg {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.announce__text { color: var(--fihan-text-bright); flex: 1; min-width: 0; }

.announce__link {
  color: var(--fihan-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.announce__link:hover { text-decoration: underline; }

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fihan-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(115, 128, 119, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.header__logo { position: relative; display: inline-flex; align-items: center; }
.header__logo .header__logo-img { height: 36px; width: auto; }

/* Logo swap per theme — alta especificidade */
img.header__logo-img--light { display: none !important; }
img.header__logo-img--dark  { display: block !important; }
[data-theme="light"] img.header__logo-img--dark  { display: none !important; }
[data-theme="light"] img.header__logo-img--light { display: block !important; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.header__back {
  font-size: 13px;
  color: var(--fihan-text-bright);
  letter-spacing: 0.04em;
}
.header__back:hover { color: var(--fihan-green); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--fihan-card-border);
  color: var(--fihan-text);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  padding: 0;
}
.theme-toggle:hover {
  background: var(--fihan-input-bg);
  border-color: var(--fihan-green);
  color: var(--fihan-green);
}
.theme-toggle__icon { width: 18px; height: 18px; display: block; }
.theme-toggle__icon--sun { display: block; }
.theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* ─── Hero (mesmo padrão do site principal) ────────────── */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: visible;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero__copy .eyebrow { margin-bottom: 24px; }
.hero__copy .display { margin-top: 0; }

/* Terminal no hero — herda tudo do componente */
.hero__terminal {
  width: 100%;
  max-width: 540px;
  justify-self: end;
  position: sticky;
  top: 96px;
}

/* ─── Lead form ──────────────────────────────────────────── */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--fihan-input-bg);
  border: 1px solid var(--fihan-card-border);
  margin: 24px 0 12px;
  max-width: 520px;
}

.hp { display: none !important; }

/* Garantir width 100% nos inputs dentro do form */
.lead-form .fihan-input--info,
.lead-form .fihan-input--info .fihan-input__field {
  width: 100%;
  max-width: none;
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(20, 204, 82, 0.04);
  border-left: 2px solid var(--fihan-green);
}

.lead-form__consent .fihan-checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.lead-form__consent .fihan-checkbox::before {
  width: 13px;
  height: 10px;
}

.lead-form__consent label {
  font-size: 12px;
  color: var(--fihan-text-bright);
  line-height: 1.5;
  cursor: pointer;
}

.lead-form__submit {
  align-self: stretch;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}

.lead-form__error {
  display: none;
  padding: 10px 14px;
  background: rgba(255, 80, 80, 0.1);
  border-left: 2px solid #ff5050;
  color: #ffb0b0;
  font-size: 13px;
}
.lead-form__error.is-active { display: block; }

.lead-form__hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fihan-text-bright);
  margin: 0;
}

/* ─── Success panel ──────────────────────────────────────── */
.success-panel {
  display: none !important;
  padding: 96px 0 120px;
  background: var(--fihan-input-bg);
  border-top: 1px solid var(--fihan-green);
  border-bottom: 1px solid var(--fihan-card-border);
}

.success-panel.is-active { display: block !important; }

.success-panel__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.success-panel__inner .display { margin: 8px 0 8px; }

.success-panel__small {
  font-size: 12px;
  margin: 8px 0 0;
}

/* ─── Chapters grid (usa .fihan-card--simples) ──────────── */
.grid {
  display: grid;
  gap: 16px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid__item--span-2 { grid-column: span 2; }
.grid__item--span-3 { grid-column: span 3; }

/* Cards no grid preenchem a célula (override do width: 218px fixo) */
.grid .fihan-card {
  width: 100%;
  min-width: 0;
  gap: 8px;
}

/* Title/desc no .fihan-card têm size próprio do site — alinha aqui */
.fihan-card .fihan-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 0;
  color: var(--fihan-text);
}

.fihan-card .fihan-card__desc {
  font-size: 14px;
  color: var(--fihan-text-bright);
  margin: 0;
  line-height: 1.5;
}

/* ─── Split (pra quem serve) ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split > div .eyebrow { margin-bottom: 16px; }
.split > div .display { margin-top: 0; }

.audience-list { max-width: 100%; }
.audience-list .fihan-checkbox { width: 28px; height: 28px; }
.audience-list .fihan-checkbox::before { width: 16px; height: 12px; }

/* ─── Final CTA ──────────────────────────────────────────── */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.final-cta .display { margin: 8px 0 16px; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--fihan-input-bg);
  border-top: 1px solid rgba(115, 128, 119, 0.2);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo { position: relative; display: inline-flex; }
.footer__logo .header__logo-img { height: 44px; width: auto; }

.footer__tag {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fihan-text);
}

.footer__desc {
  font-size: 13px;
  color: var(--fihan-text-bright);
  line-height: 1.5;
  margin: 0;
  max-width: 380px;
}

.footer__contact h4 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fihan-green);
}

.footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer__contact a { color: var(--fihan-text-bright); transition: color 120ms ease; }
.footer__contact a:hover { color: var(--fihan-green); }

.footer__bottom {
  border-top: 1px solid rgba(115, 128, 119, 0.15);
  padding: 20px 0;
  font-size: 12px;
  color: var(--fihan-text-muted);
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Arrow SVG slot (injetado via JS) */
.fihan-btn__icon {
  display: inline-block;
  width: 14.51px;
  height: 10.4px;
  flex-shrink: 0;
}
.fihan-btn__icon svg { display: block; width: 100%; height: 100%; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__terminal { justify-self: start; max-width: 100%; position: static; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid__item--span-2 { grid-column: span 1; }
  .grid__item--span-3 { grid-column: span 2; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { padding: 48px 0 64px; }

  /* Grid 3 colunas → 1 coluna no mobile, span 3 fica span 1 */
  .grid--3 { grid-template-columns: 1fr; }
  .grid__item--span-3 { grid-column: span 1; }

  .header { background: var(--fihan-input-bg); }
  .header__inner { min-height: 60px; gap: 8px; }
  .header__logo .header__logo-img { height: 28px; }
  .theme-toggle { width: 36px; height: 36px; }
  .theme-toggle__icon { width: 16px; height: 16px; }
  .header__back { font-size: 12px; }

  .announce { padding: 12px 0; font-size: 12px; }
  .announce__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .announce__msg { width: 100%; }
  .announce__link { align-self: flex-start; }

  .lead-form { padding: 20px; gap: 14px; max-width: 100%; }
  .lead-form__consent { padding: 12px; }
  .lead-form__consent label { font-size: 11px; }
  .lead-form__submit { padding: 12px 20px; font-size: 14px; }
  .lead-form__hint { font-size: 12px; }

  .audience-list .fihan-checkbox { width: 24px; height: 24px; }
  .audience-list .fihan-checkbox::before { width: 14px; height: 10px; }
  .audience-list .fihan-checkbox-item__label { font-size: 14px; }

  .success-panel { padding: 64px 0 80px; }

  .footer { padding: 48px 0 0; }
  .footer__inner { gap: 32px; padding-bottom: 32px; }
  .footer__logo .header__logo-img { height: 36px; }
  .footer__bottom .container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .display { font-size: 32px; line-height: 1.1; }
  .display--xl { font-size: 38px; line-height: 1.05; }
  .lede { font-size: 15px; }
  .header__back { display: none; }
}
