/* ============ Design tokens — Bee Educacional ============ */
:root {
  --bg: #F1F4EF;
  --bg-raised: #FFFFFF;
  --ink: #16213E;
  --ink-soft: #4A5578;
  --honey: #D9A441;
  --honey-deep: #B9832E;
  --hive-green: #3F6E58;
  --alert: #C0503A;
  --border: rgba(22, 33, 62, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hive-green);
  margin: 0 0 0.75rem;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: var(--ink);
  box-shadow: 0 8px 24px -14px rgba(22, 33, 62, 0.5);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  transition: color 0.35s ease;
}

.logo-mark {
  width: 20px;
  height: 20px;
  background: var(--honey);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a { transition: color 0.35s ease; }

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.site-header.scrolled .logo,
.site-header.scrolled .site-nav a:not(.nav-cta) {
  color: #F1F4EF;
}

.site-header.scrolled .nav-cta {
  background: var(--honey);
  color: var(--ink);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 2px; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { border: 1px solid var(--border); color: var(--ink); }
.btn-block { width: 100%; margin-top: 1.5rem; }

/* ============ Hero ============ */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--honey-deep);
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Phone mock */
.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 260px;
  background: var(--ink);
  border-radius: 32px;
  padding: 1.4rem 1rem;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(22,33,62,0.35);
}

.phone-notch {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 100px;
  margin: 0 auto 1.5rem;
}

.phone-notification {
  background: var(--bg-raised);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.8rem;
  animation: rise 0.6s ease both;
}
.notif-secondary { opacity: 0.7; animation-delay: 0.15s; }

.notif-app {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--hive-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.notif-time {
  float: right;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
}
.notif-body {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  clear: both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-notification { animation: none; }
}

/* ============ Módulos — grade de hexágonos ============ */
.modulos { max-width: var(--max-width); margin: 0 auto; padding: 4rem 1.5rem; }

.hive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.hive > div:nth-child(2), .hive > div:nth-child(5) { transform: translateY(1.5rem); }

.hex {
  aspect-ratio: 1 / 1.05;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hex:hover { transform: scale(1.04); background: #FBF9F4; }

.hex-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hex-inner strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.hex-inner span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* ============ Planos ============ */
.planos { max-width: 640px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }

.plano-card {
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

.plano-linha {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.plano-linha:last-of-type { border-bottom: none; }

.plano-valor {
  font-family: var(--font-mono);
  color: var(--honey-deep);
}
.plano-valor small { color: var(--ink-soft); font-family: var(--font-body); }

/* ============ Footer ============ */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

/* ============ Painéis internos (funcional, sem refino visual ainda) ============ */
body.panel-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-escola-img {
  height: 22px;
  width: auto;
  border-radius: 4px;
}

.panel-shell {
  display: flex;
  flex: 1;
}

.panel-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.panel-sidebar nav { display: flex; flex-direction: column; gap: 0.25rem; }
.panel-sidebar a {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.panel-sidebar a:hover, .panel-sidebar a.ativo { background: var(--bg); color: var(--honey-deep); }
.cadeado-premium { font-size: 0.75rem; opacity: 0.7; }

.panel-main { flex: 1; padding: 1.5rem 2rem 3rem; max-width: 960px; }

.panel-header-right { display: flex; align-items: center; gap: 1rem; }
.panel-user { font-size: 0.85rem; color: var(--ink-soft); }
.panel-papel {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.4rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.panel-footer {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 2rem;
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-grid .field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.form-grid input, .form-grid select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
table.data-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
table.data-table tr:last-child td { border-bottom: none; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.badge-presente { background: rgba(63,110,88,0.15); color: var(--hive-green); }
.badge-falta { background: rgba(192,80,58,0.15); color: var(--alert); }

.status-msg {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.status-ok { background: rgba(63,110,88,0.12); color: var(--hive-green); }
.status-erro { background: rgba(192,80,58,0.12); color: var(--alert); }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .panel-shell { flex-direction: column; }
  .panel-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .panel-sidebar nav { flex-direction: row; overflow-x: auto; }
  .panel-main { padding: 1.25rem; }
}

/* ============ Como funciona (explicação dos módulos) ============ */
.explicacao {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.feature-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 1px solid var(--border); }

.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.3rem;
  background: var(--honey);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.feature-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.feature-row p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  max-width: 56ch;
}

/* ============ Rodapé com formulário de lead ============ */
.site-footer-full {
  background: var(--ink);
  color: #F1F4EF;
}

.footer-contato {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-contato-texto .eyebrow { color: var(--honey); }
.footer-contato-texto h2 { color: #fff; }
.footer-contato-texto p { color: rgba(241,244,239,0.75); }

.footer-form .field { margin-bottom: 0.9rem; }
.footer-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: rgba(241,244,239,0.85);
}
.footer-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(241,244,239,0.2);
  background: rgba(241,244,239,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.footer-form input::placeholder { color: rgba(241,244,239,0.4); }
.footer-form input:focus-visible { outline: 2px solid var(--honey); outline-offset: 1px; }
.footer-form .status-ok { background: rgba(63,110,88,0.25); color: #A9D9C3; }
.footer-form .status-erro { background: rgba(192,80,58,0.25); color: #F0B3A6; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(241,244,239,0.6);
  border-top: 1px solid rgba(241,244,239,0.12);
}
.footer-bottom a { color: rgba(241,244,239,0.85); }

@media (max-width: 780px) {
  .footer-contato { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ============ Responsivo (landing) ============ */
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero-visual { order: -1; }
  .hive { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
  .hive > div:nth-child(2), .hive > div:nth-child(5) { transform: none; }
  .site-nav { gap: 1rem; font-size: 0.85rem; }
  .site-footer { flex-direction: column; gap: 0.5rem; }
}
