/*!
 * Rumo — design system (modulo F)
 * Paleta: fundo #faf9ff, texto #1d1b2e, primaria violeta #6d28d9, acento ambar #f59e0b.
 * Mobile-first. Sem dependencias externas (fontes/imagens). Alvos de toque >= 44px.
 */

/* ============================ Variaveis ============================ */
:root {
  --bg: #faf9ff;
  --bg-raised: #ffffff;
  --text: #1d1b2e;
  --muted: #6b7280;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-tint: #f3edfd;
  --amber: #f59e0b;
  --amber-tint: #fef3e2;
  --ok: #059669;
  --ok-tint: #e7f7f1;
  --erro: #dc2626;
  --erro-tint: #fdecec;
  --border: #e5e1f0;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(29, 27, 46, 0.05), 0 1px 1px rgba(29, 27, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.08), 0 2px 8px rgba(29, 27, 46, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================ Reset ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, p, figure { margin: 0 0 0.6em; }

/* Foco visivel para navegacao por teclado */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================ Layout ============================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.main { padding: 28px 0 64px; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ============================ Navbar ============================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--primary); }
.brand-ico { color: var(--primary); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  min-height: 44px;
}
.nav-links::-webkit-scrollbar { height: 4px; }
.nav-links::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.nav-link:hover { background: var(--primary-tint); text-decoration: none; }
.nav-link.ativo { color: var(--primary); background: var(--primary-tint); }
.nav-cta { flex-shrink: 0; margin-left: 4px; }

/* ============================ Footer ============================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  margin-top: 40px;
}
.foot-brand { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
}
.foot-links a { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.foot-links a:hover { color: var(--primary); }
.foot-note { font-size: 0.82rem; max-width: 640px; margin: 0; }

/* ============================ Texto ============================ */
.h1 {
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
.h2 {
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
.h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4em;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--primary);
  margin: 0 0 0.6em;
}

/* ============================ Botoes ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }

.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #04644f; color: #fff; }

.btn-amber { background: var(--amber); color: #1d1b2e; }
.btn-amber:hover { background: #dd8c07; color: #1d1b2e; }

.btn-sm { min-height: 44px; padding: 0 15px; font-size: 0.86rem; }
.btn-block { display: flex; width: 100%; }

/* ============================ Forms ============================ */
.label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text);
}
.input, .textarea, .select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; padding-top: 12px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-row { margin-bottom: 16px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.check-row input[type="checkbox"], .check-row input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

/* ============================ Feedback ============================ */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.alert-ok { background: var(--ok-tint); color: #04503f; border-color: #b9e6d6; }
.alert-erro { background: var(--erro-tint); color: #8f1f1f; border-color: #f3c3c3; }

.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}

.paywall {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--primary-tint) 0%, var(--bg-raised) 70%);
}
.paywall .h3 { color: var(--primary); }

/* ============================ Dados ============================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 800; color: var(--text); background: var(--primary-tint); white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-pro { background: var(--primary); color: #fff; }
.badge-free { background: var(--border); color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ============================ Cards ============================ */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-hi {
  border-color: var(--primary);
  background: linear-gradient(165deg, var(--primary-tint) 0%, var(--bg-raised) 60%);
  box-shadow: var(--shadow-md);
}

/* ============================ Especificos ============================ */
.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.streak-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.streak-dot.on { background: var(--amber); }

.riasec-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.riasec-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  transition: width 0.4s ease;
}

.hero {
  position: relative;
  padding: 44px 0 12px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.45em; }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 0 1.6em; }

.pricing {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.pricing.card-hi { box-shadow: var(--shadow-md); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-num { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.ativo { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================ Impressao ============================ */
@media print {
  .navbar, .footer, .btn, .paywall, .nav-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .card-hi { border: 1px solid #ccc; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
