/* =========================================================
   CURRÍCULO AGORA — Editorial Career aesthetic
   Refined editorial design, warm Brazilian sensibility.
   ========================================================= */

:root{
  /* Warm cream paper background */
  --bg: #FAF5ED;
  --paper: #FFFCF7;
  --paper-edge: rgba(31, 27, 22, 0.06);

  /* Ink: warm dark instead of cold black */
  --ink: #1F1B16;
  --ink-soft: #5B4D3F;
  --ink-muted: #8C7B6A;

  /* Deep forest green (Brazilian rainforest) — primary */
  --primary: #1E4D3A;
  --primary-deep: #163729;
  --primary-soft: #DDE8DF;
  --primary-tint: #F0F5F1;

  /* Golden ochre (Brazilian sun) — accent */
  --accent: #C68B3F;
  --accent-deep: #A06F2C;
  --accent-soft: #F5E8D0;

  /* Terracotta — secondary warm */
  --rose: #B8694C;

  /* Status colors */
  --success: #2F6B4D;
  --danger: #B23B33;

  /* Layout */
  --border: rgba(31, 27, 22, 0.10);
  --border-strong: rgba(31, 27, 22, 0.20);
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.04), 0 1px 3px rgba(31, 27, 22, 0.06);
  --shadow: 0 4px 14px rgba(31, 27, 22, 0.08), 0 2px 6px rgba(31, 27, 22, 0.05);
  --shadow-lg: 0 24px 60px rgba(31, 27, 22, 0.12), 0 8px 24px rgba(31, 27, 22, 0.06);

  /* Type scale (variable axis) */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;            /* defensive: nunca scroll horizontal */
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;             /* idem */
  width: 100%;

  /* Subtle paper-grain texture overlay */
  background-image:
    radial-gradient(at 12% 8%, rgba(198, 139, 63, 0.06) 0px, transparent 50%),
    radial-gradient(at 88% 92%, rgba(30, 77, 58, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-deep); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 540;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 32, "SOFT" 30;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 480; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 520; letter-spacing: -0.02em; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }
strong, b { font-weight: 700; }

/* Used a LOT in templates */
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* ===== Layout ===== */
.container{
  max-width: 1020px;
  margin: 0 auto;
  padding: 18px 22px;
}

/* ===== Topbar / Header ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 237, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
  flex-wrap: wrap;       /* deixa cair em duas linhas se faltar espaço */
  min-width: 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark{ display: inline-flex; align-items: center; }
.brand-accent{
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 460;
}

.nav{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a{
  color: var(--ink);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--primary);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}
.btn-primary:hover{
  background: var(--primary-deep);
  color: #FFFFFF !important;
  box-shadow: var(--shadow);
}

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

.btn-accent{
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover{
  background: var(--accent-deep);
  color: var(--paper);
}

.btn-lg{
  padding: 14px 26px;
  font-size: 1rem;
}
.btn-full{ width: 100%; }

/* ===== Cards ===== */
.card{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card.mini{ padding: 16px; border-radius: 14px; }

/* ===== Grids ===== */
.grid3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.grid2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 720px){
  .grid3, .grid2{ grid-template-columns: 1fr; }
}

/* ===== Pill (status indicator) ===== */
.pill{
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.83rem;
  font-weight: 600;
}

/* ===== Wizard ===== */
.wizard{ max-width: 760px; margin: 0 auto; }
.wizard-head{ margin: 14px 0 22px; }
.progress{
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== Tip box ===== */
.tip{
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--accent-soft);
  margin: 14px 0;
  color: var(--ink);
}

/* ===== Forms ===== */
.form p{ margin: 12px 0; }
.form label{
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
}
.form input,
.form textarea,
.form select,
.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.97rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus,
.input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.form small{ color: var(--ink-soft); }

.actions{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ===== Review grid ===== */
.review-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
@media (max-width: 900px){
  .review-grid{ grid-template-columns: 1fr; }
}

/* ===== Tags ===== */
.tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 500;
  background: var(--paper);
}

/* ===== Lesson box (wizard sidebar) ===== */
.lesson{
  border: 1px solid var(--primary);
  background: var(--primary-tint);
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0 22px;
}
.lesson-title{
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 580;
  letter-spacing: -0.015em;
  color: var(--primary-deep);
  margin-bottom: 10px;
}
.lesson-list{
  margin: 0 0 12px 18px;
  color: var(--ink);
  line-height: 1.55;
}

/* ===== Chips ===== */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip{
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all .15s ease;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}

/* ===== Selectable card (model picker) ===== */
.selectable{
  cursor: pointer;
  transition: all .2s ease;
  background: var(--paper);
  border: 2px solid var(--border);
}
.selectable.active{
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(30, 77, 58, 0.15);
}

/* ===== Preview / image frame ===== */
.preview-wrap{
  position: relative;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}
.preview-img{ width: 100%; display: block; pointer-events: none; user-select: none; }
.preview-tag{
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 252, 247, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}

/* ===== Checkbox inline ===== */
.checkbox-inline{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.checkbox-inline input[type="checkbox"]{
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* ===== Pay-head (used in checkout) ===== */
.pay-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.pay-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px){
  .pay-grid{ grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer{
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background:
    linear-gradient(180deg, transparent, rgba(30, 77, 58, 0.03));
  position: relative;
}
.footer::before{
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 48px 22px 24px;
}
@media (max-width: 720px){
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
}
.footer-col h4.footer-title{
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a{
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .15s ease, transform .15s ease;
  display: inline-block;
}
.footer-list a:hover{
  color: var(--primary);
  transform: translateX(2px);
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.footer-tagline{
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 30ch;
}
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ===== Legal / Article pages ===== */
.legal-page{
  max-width: 760px;
  margin: 28px auto 0;
  padding: 44px 38px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px){
  .legal-page{ padding: 30px 22px; border-radius: 18px; }
}
.legal-page h1{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 460;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.1;
}
.legal-page h1::after{
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 22px;
  border-radius: 3px;
}
.legal-page h2{
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 540;
  letter-spacing: -0.015em;
  margin-top: 38px;
  margin-bottom: 12px;
  color: var(--primary-deep);
}
.legal-page h3{
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.legal-page p{ line-height: 1.72; color: var(--ink); }
.legal-page ul, .legal-page ol{ line-height: 1.72; padding-left: 22px; }
.legal-page li{ margin-bottom: 6px; }
.legal-page a{
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-page blockquote{
  margin: 18px 0;
  padding: 12px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

.contact-card{
  border: 1px solid var(--primary);
  border-left-width: 4px;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
  background: var(--primary-tint);
}
.contact-card h2{
  margin-top: 0;
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq{
  max-width: 760px;
  margin: 56px auto 0;
}
.faq h2{
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 480;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.faq-item{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item:hover{ border-color: var(--border-strong); }
.faq-item[open]{ border-color: var(--primary); }
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  padding: 16px 50px 16px 20px;
  list-style: none;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background-image: linear-gradient(currentColor, currentColor),
                    linear-gradient(currentColor, currentColor);
  background-size: 2px 100%, 100% 2px;
  background-position: center, center;
  background-repeat: no-repeat;
  color: var(--accent-deep);
  transition: transform .25s ease;
}
.faq-item[open] summary::after{
  background-size: 0 100%, 100% 2px;
  transform: rotate(180deg);
}
.faq-body{
  padding: 4px 22px 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===== AdSense slot ===== */
.ad-slot{
  margin: 30px auto;
  max-width: 100%;
  text-align: center;
  min-height: 100px;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 640px){
  .container{ padding: 12px 16px; }
  .topbar-inner{ gap: 8px; }
  .brand{ font-size: 1.1rem; }
  .brand .brand-mark svg{ width: 24px; height: 24px; }
  .nav{ gap: 4px; }
  .nav .btn{ padding: 8px 12px; font-size: 0.86rem; }
  /* Esconde "Sobre" no celular pra caber a topbar */
  .nav a[href*="/sobre/"]{ display: none; }
  .pay-head{ flex-direction: column; gap: 10px; }
  .actions{ gap: 8px; }
  .btn{ padding: 10px 14px; }
}

/* Telas muito pequenas (≤360px): esconde também "Início" */
@media (max-width: 380px){
  .nav a[href$="/"]:first-of-type{ display: none; }
  .brand{ font-size: 1rem; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.anim-fadeUp { animation: fadeUp .6s cubic-bezier(.2, .6, .2, 1) both; }
.anim-fadeIn { animation: fadeIn .5s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.20s; }
.delay-4 { animation-delay: 0.30s; }

/* Honors reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Selection ===== */
::selection { background: var(--accent-soft); color: var(--ink); }
::-moz-selection { background: var(--accent-soft); color: var(--ink); }

/* ===== Scroll bar (subtle) ===== */
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }
