
:root{--bg:#f4efe6;--surface:#fffdf8;--surface2:#ece7dc;--text:#17343a;--muted:#6a7476;--accent:#1f5962;--accent2:#153f46;--border:#d8d2c6;--success:#2f6f4e;--danger:#8d3f3f;--shadow:0 12px 32px rgba(23,52,58,.06);--radius:18px}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);line-height:1.5}a{color:inherit}button,input{font:inherit}.app-shell{width:min(980px,calc(100% - 32px));margin:0 auto;padding:28px 0 48px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.brand-title{font-size:clamp(1.35rem,2vw,1.7rem);font-weight:800}.brand-subtitle,.muted{color:var(--muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}.card+.card{margin-top:18px}h1,h2,h3,p{margin-top:0}label{display:block;font-weight:700;margin:14px 0 6px}input{width:100%;border:1px solid var(--border);border-radius:11px;padding:12px 13px;background:white;color:var(--text)}input:focus{outline:2px solid rgba(31,89,98,.2);border-color:var(--accent)}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.dashboard-actions{margin-top:18px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:0;border-radius:11px;padding:10px 16px;font-weight:800;text-decoration:none;background:var(--accent);color:white;cursor:pointer}.btn:hover{background:var(--accent2)}.btn.secondary{background:var(--surface2);color:var(--text)}.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--border)}.btn:disabled{opacity:.55;cursor:not-allowed}.status{margin-top:14px;border-radius:11px;padding:12px 14px;background:var(--surface2);white-space:pre-wrap}.status.success{color:var(--success)}.status.error{color:var(--danger)}.login-wrap{width:min(520px,calc(100% - 32px));margin:8vh auto 0;padding-bottom:40px}.form-grid{display:grid;gap:14px}.progress-track{height:12px;background:var(--surface2);border-radius:999px;overflow:hidden}.progress-bar{height:100%;width:0;background:var(--accent);border-radius:999px;transition:width .25s ease}.stage-list{display:grid;gap:12px;margin-top:18px}.stage{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:14px;padding:15px;border:1px solid var(--border);border-radius:14px;background:white}.stage-index{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--surface2);font-weight:800}.stage.complete .stage-index{background:var(--success);color:white}.stage-title{margin:0;font-weight:800}.stage-meta{color:var(--muted);font-size:.9rem}.dev-note{border-left:4px solid var(--accent);padding-left:14px;color:var(--muted)}.hidden{display:none!important}@media(max-width:680px){.app-shell{width:min(100% - 20px,980px);padding-top:16px}.card{padding:18px}.topbar{align-items:flex-start}.stage{grid-template-columns:38px 1fr}.stage-action{grid-column:1/-1}.stage-action .btn{width:100%}}


/* ===== Estados da jornada: não iniciada / em andamento / concluída ===== */
.stage-copy{min-width:0}
.stage-heading-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:2px;
}
.stage-state{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.72rem;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  background:var(--surface2);
  color:var(--muted);
}
.stage-state-in_progress{
  background:#fbf5e0;
  color:#7a5c00;
  border:1px solid #edd9a3;
}
.stage-state-complete{
  background:#e6f2e8;
  color:var(--success);
}
.stage.in-progress{
  border-color:#d7ba7d;
  background:#fffdf8;
}
.stage.in-progress .stage-index{
  background:#fbf5e0;
  color:#7a5c00;
  border:1px solid #edd9a3;
}
.progress-note{
  margin:7px 0 0;
  color:#7a5c00;
  font-size:.9rem;
  font-weight:650;
}
@media(max-width:680px){
  .stage-heading-row{
    align-items:flex-start;
    justify-content:space-between;
  }
  .stage-state{
    font-size:.68rem;
  }
}


/* LIBERAÇÃO PROGRESSIVA */
.stage.locked{
  opacity:.78;
  background:#f7f4ee;
}
.stage.locked .stage-index{
  background:#ece7dc;
  color:#6a7476;
  font-size:.95rem;
}
.stage.next-locked{
  opacity:1;
  border-color:#d7ba7d;
  background:#fffaf0;
}
.stage.next-locked .stage-index{
  background:#fbf5e0;
  border:1px solid #edd9a3;
}
.stage-state-available{
  background:#e6f2e8;
  color:#2d6a4f;
}
.stage-state-locked{
  background:#ece7dc;
  color:#6a7476;
}
.stage-locked-button{
  background:#e6e1d8 !important;
  color:#6a7476 !important;
  cursor:not-allowed;
}
#continueBtn[aria-disabled="true"]{
  background:#e6e1d8;
  color:#6a7476;
  pointer-events:none;
}
.stage-meta strong{color:#7a5c00}

.locked-screen{
  text-align:center;
  padding:clamp(28px,7vw,56px) 22px;
}
.locked-screen-icon{
  font-size:2.2rem;
  margin-bottom:12px;
}

@media(max-width:680px){
  .stage{
    grid-template-columns:38px minmax(0,1fr);
  }
  .stage-action{
    grid-column:1 / -1;
  }
  .stage-action .btn{
    width:100%;
  }
  .stage.locked:not(.next-locked) .stage-action{
    display:none;
  }
}


/* UX — etapas concluídas que continuam recebendo registros */
.stage-state-open{
  background:#f7f3e8;
  color:#7a5c00;
  border:1px solid #e8d7aa;
  font-weight:700;
}
.stage.complete .stage-state-open{
  box-shadow:none;
}


/* Homologação V1 — contador de registros das experiências contínuas */
.stage-state-count{
  background:#f7f3e8;
  color:#6f5713;
  border:1px solid #e8d7aa;
  font-weight:700;
  white-space:nowrap;
}
.stage.complete .stage-state-count{box-shadow:none;}


/* =========================================================
   DASHBOARD DEFINITIVO — DECIFRE SUA DOR
   Escopo isolado em .dashboard-page para não alterar as aulas.
   ========================================================= */
.dashboard-page{
  --dash-bg:#EAF2F7;
  --dash-surface:#FCFDFE;
  --dash-navy:#0D2B3E;
  --dash-navy-2:#173F55;
  --dash-blue:#7895A6;
  --dash-gold:#C79A52;
  --dash-gold-soft:#E8D7AD;
  --dash-text:#18313E;
  --dash-muted:#617784;
  --dash-green:#2D7A59;
  --dash-shadow:0 18px 50px rgba(13,43,62,.09);
  background:
    radial-gradient(circle at 12% 8%,rgba(255,255,255,.95),transparent 27rem),
    linear-gradient(180deg,#EEF6FA 0%,#E7F1F5 100%);
  color:var(--dash-text);
  font-family:"Inter",system-ui,sans-serif;
  font-size:18px;
}
.dashboard-page .hidden{display:none!important}
.dashboard-shell{width:min(1380px,calc(100% - 44px));margin:0 auto;padding:24px 0 56px}
.dashboard-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 4px 20px}
.dashboard-brand{text-decoration:none;color:var(--dash-navy);display:grid;line-height:.9}
.brand-kicker{font-size:12px;font-weight:700;letter-spacing:.34em;margin-left:3px}
.brand-main{font-family:"Cormorant Garamond",Georgia,serif;font-size:39px;font-weight:700;letter-spacing:-.04em}
.brand-main em{font-style:normal;color:var(--dash-gold)}
.brand-caption{font-size:10px;letter-spacing:.22em;color:var(--dash-muted);margin-top:8px}
.dashboard-user{display:flex;align-items:center;gap:18px;color:var(--dash-muted);font-size:14px}
.dashboard-user-email strong{color:var(--dash-navy)}
.dashboard-logout{min-height:46px;padding:0 20px;border-radius:999px;border:1px solid rgba(13,43,62,.15);background:rgba(255,255,255,.6);color:var(--dash-navy);font:700 14px/1 "Inter",sans-serif;cursor:pointer}
.dashboard-logout:hover{border-color:var(--dash-gold);background:white}

.dashboard-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);min-height:460px;border-radius:30px;overflow:hidden;background:linear-gradient(135deg,#F9FCFE 0%,#E1EDF4 100%);box-shadow:var(--dash-shadow);border:1px solid rgba(255,255,255,.85)}
.hero-copy{padding:54px 54px 48px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.hero-eyebrow,.journey-kicker{margin:0 0 14px;font-size:12px;line-height:1.4;font-weight:800;letter-spacing:.2em;color:#637E8D}
.dashboard-hero h1{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(60px,5.8vw,86px);line-height:.88;letter-spacing:-.045em;color:var(--dash-navy);margin:0 0 28px;max-width:740px}
.hero-subtitle{font-size:21px;line-height:1.58;color:#405B69;margin:0;max-width:690px}
.hero-micro{display:flex;align-items:center;gap:14px;margin:30px 0 0;font:600 italic 17px/1.45 "Cormorant Garamond",Georgia,serif;color:var(--dash-navy)}
.hero-micro span{display:inline-block;width:48px;height:2px;background:var(--dash-gold)}
.hero-image{min-height:460px;background-image:linear-gradient(90deg,rgba(225,237,244,.1),rgba(225,237,244,0)),url('/assets/dashboard/hero.jpg');background-size:cover;background-position:center 35%;position:relative}
.hero-image::after{content:"";position:absolute;inset:auto 0 0 0;height:34%;background:linear-gradient(180deg,transparent,rgba(13,43,62,.12))}

.journey-progress-card{display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:24px;margin-top:22px;padding:28px 30px;border-radius:26px;background:rgba(252,253,254,.92);border:1px solid rgba(199,154,82,.24);box-shadow:var(--dash-shadow)}
.journey-progress-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#EEF5F8);border:1px solid var(--dash-gold-soft);color:var(--dash-gold)}
.journey-progress-icon svg{width:39px;height:39px;stroke:currentColor}
.journey-progress-copy h2,.journey-steps h2{font-family:"Cormorant Garamond",Georgia,serif;color:var(--dash-navy);letter-spacing:-.035em}
.journey-progress-copy h2{font-size:44px;line-height:.95;margin:0 0 5px}
.journey-helper{font-size:17px;line-height:1.45;color:var(--dash-muted);margin:0 0 18px}
.journey-progress-meta{display:flex;justify-content:space-between;align-items:baseline;gap:20px;font-size:16px;color:#4D6877;margin-bottom:9px}
.journey-progress-meta strong{font-family:"Cormorant Garamond",Georgia,serif;font-size:31px;color:var(--dash-navy)}
.dashboard-progress-track{height:10px;background:#D8E5EC}
.dashboard-progress-track .progress-bar{background:linear-gradient(90deg,#0D2B3E,#2B627D)}
.dashboard-page .progress-note{font-size:14px;color:#84631D;margin:11px 0 0;font-weight:700}
.dashboard-status{font-size:12px;color:#80929B;margin-top:10px}
.dashboard-status.error{color:#A04A4A}
.dashboard-primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:58px;padding:0 26px;border-radius:999px;background:linear-gradient(135deg,#0D2B3E,#173F55);color:#fff;text-decoration:none;font-size:16px;font-weight:800;box-shadow:0 12px 24px rgba(13,43,62,.16);white-space:nowrap}
.dashboard-primary-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(13,43,62,.21)}
.dashboard-primary-btn[aria-disabled="true"]{background:#DCE4E8;color:#70828B;pointer-events:none;box-shadow:none}

.whatsapp-card{display:grid;grid-template-columns:60px minmax(0,1fr) 42px;align-items:center;gap:18px;margin:16px 0 0;padding:18px 22px;border-radius:22px;background:linear-gradient(110deg,#EAF7F0 0%,#F9FCFA 72%);border:1px solid rgba(45,122,89,.2);text-decoration:none;color:var(--dash-text);box-shadow:0 10px 30px rgba(13,43,62,.045)}
.whatsapp-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#23A865;color:white}
.whatsapp-icon svg{width:32px;height:32px}
.whatsapp-copy{display:grid;gap:2px}
.whatsapp-copy strong{font-family:"Cormorant Garamond",Georgia,serif;font-size:30px;line-height:1;color:var(--dash-navy)}
.whatsapp-copy small{font-size:15px;color:var(--dash-muted)}
.whatsapp-arrow{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--dash-gold);color:var(--dash-gold);font-weight:800}
.whatsapp-card:hover{border-color:rgba(45,122,89,.42);background:#F7FCF9}

.journey-steps{margin-top:42px}
.journey-steps-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}
.journey-steps h2{font-size:54px;line-height:.95;margin:0 0 9px}
.journey-steps-header p:not(.journey-kicker){font-size:18px;line-height:1.55;color:var(--dash-muted);margin:0;max-width:850px}
.dashboard-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.module-card{display:grid;grid-template-rows:190px 1fr;min-width:0;border-radius:22px;overflow:hidden;background:var(--dash-surface);border:1px solid #DDE7EC;text-decoration:none;color:inherit;box-shadow:0 12px 32px rgba(13,43,62,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
a.module-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(13,43,62,.10)}
.module-thumb-wrap{position:relative;overflow:hidden;background:#DDE8EE}
.module-thumb-img{width:100%;height:100%;display:block;object-fit:cover}
.module-state{position:absolute;top:13px;left:13px;display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.04em;border:1px solid transparent;backdrop-filter:blur(6px)}
.state-complete{background:#EAF5EF;color:#236847;border-color:#CDE4D6}
.state-current{background:#FBF1D9;color:#725414;border-color:#E4C77E}
.state-available{background:rgba(250,253,254,.92);color:#335666;border-color:#D4E0E6}
.state-locked{background:rgba(238,242,244,.92);color:#7C8C94;border-color:#DAE1E4}
.module-card-body{display:flex;flex-direction:column;padding:20px 20px 18px}
.module-number{font-size:12px;font-weight:800;letter-spacing:.16em;color:#8B9AA2;margin-bottom:7px}
.module-card h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:31px;line-height:1.02;letter-spacing:-.025em;color:var(--dash-navy);margin:0 0 9px}
.module-card p{font-size:16px;line-height:1.5;color:var(--dash-muted);margin:0 0 18px}
.module-card-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto;padding-top:14px;border-top:1px solid #E9EFF2}
.module-card-meta{font-size:13px;font-weight:700;color:#6C808A}
.module-card-arrow{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--dash-gold);border:1px solid var(--dash-gold-soft);font-weight:800}
.module-done{border-color:#E4CC95;box-shadow:0 12px 32px rgba(199,154,82,.08)}
.module-current{border-color:#C79A52;box-shadow:0 16px 38px rgba(199,154,82,.18)}
.module-next-locked{border-color:#D9C9A4}
.module-locked{opacity:.72;box-shadow:none}
.module-locked .module-thumb-img{filter:saturate(.72) brightness(1.04)}

.dashboard-footer{margin-top:44px;padding:28px 8px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:34px;align-items:end;color:var(--dash-muted)}
.footer-rule{grid-column:1/-1;height:1px;background:linear-gradient(90deg,var(--dash-gold),rgba(199,154,82,0))}
.dashboard-footer p{font-size:15px;line-height:1.65;margin:0;max-width:850px}
.dashboard-footer p strong{color:var(--dash-navy)}
.footer-signature{text-align:right;color:var(--dash-navy)}
.footer-signature span{display:block;font:600 italic 35px/1 "Cormorant Garamond",Georgia,serif}
.footer-signature small{display:block;margin-top:7px;font-size:10px;letter-spacing:.22em}

@media(max-width:1100px){
  .dashboard-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-hero{grid-template-columns:1.1fr .9fr}
  .hero-copy{padding:46px 42px}
  .dashboard-hero h1{font-size:clamp(54px,7vw,74px)}
}

@media(max-width:760px){
  .dashboard-page{font-size:17px}
  .dashboard-shell{width:min(100% - 22px,720px);padding:14px 0 34px}
  .dashboard-topbar{padding:2px 2px 14px;gap:12px}
  .brand-kicker{font-size:9px;letter-spacing:.28em}
  .brand-main{font-size:30px}
  .brand-caption{font-size:8px;margin-top:5px}
  .dashboard-user-email{display:none}
  .dashboard-logout{min-height:42px;padding:0 16px;font-size:13px}

  .dashboard-hero{display:block;min-height:0;border-radius:24px}
  .hero-copy{padding:30px 24px 24px}
  .hero-eyebrow{font-size:10px;margin-bottom:12px}
  .dashboard-hero h1{font-size:clamp(50px,14.2vw,64px);line-height:.91;margin-bottom:22px}
  .hero-subtitle{font-size:18px;line-height:1.58}
  .hero-micro{font-size:15px;margin-top:22px;gap:10px}
  .hero-micro span{width:38px}
  .hero-image{min-height:220px;background-position:center 28%}

  .journey-progress-card{grid-template-columns:52px minmax(0,1fr);gap:15px;margin-top:14px;padding:22px 18px;border-radius:22px}
  .journey-progress-icon{width:52px;height:52px;align-self:start}
  .journey-progress-icon svg{width:30px;height:30px}
  .journey-progress-copy h2{font-size:40px}
  .journey-helper{font-size:16px;margin-bottom:15px}
  .journey-progress-meta{font-size:15px}.journey-progress-meta strong{font-size:28px}
  .journey-progress-action{grid-column:1/-1}
  .dashboard-primary-btn{width:100%;min-height:54px;font-size:16px}
  .dashboard-status{font-size:11px}

  .whatsapp-card{grid-template-columns:50px minmax(0,1fr) 34px;padding:15px 16px;gap:12px;border-radius:20px}
  .whatsapp-icon{width:48px;height:48px}.whatsapp-icon svg{width:28px;height:28px}
  .whatsapp-copy strong{font-size:27px}.whatsapp-copy small{font-size:14px;line-height:1.4}
  .whatsapp-arrow{width:32px;height:32px}

  .journey-steps{margin-top:34px}
  .journey-steps h2{font-size:46px}
  .journey-steps-header p:not(.journey-kicker){font-size:16px}
  .journey-kicker{font-size:10px}
  .dashboard-stage-grid{display:flex;flex-direction:column;gap:13px}
  .module-card{grid-template-columns:124px minmax(0,1fr);grid-template-rows:none;min-height:158px;border-radius:20px}
  .module-thumb-wrap{min-height:158px}
  .module-card-body{padding:15px 15px 13px}
  .module-state{top:10px;left:8px;min-height:27px;padding:0 8px;font-size:9px}
  .module-number{font-size:10px;margin-bottom:5px}
  .module-card h3{font-size:27px;line-height:1.02;margin-bottom:6px}
  .module-card p{font-size:15px;line-height:1.42;margin-bottom:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .module-card-footer{padding-top:8px}
  .module-card-meta{font-size:11.5px}
  .module-card-arrow{width:30px;height:30px}

  .dashboard-footer{grid-template-columns:1fr;margin-top:34px;padding:22px 4px 0;gap:20px}
  .dashboard-footer p{font-size:14px}.footer-signature{text-align:left}.footer-signature span{font-size:31px}
}

@media(max-width:420px){
  .dashboard-shell{width:min(100% - 14px,420px)}
  .dashboard-hero h1{font-size:48px}
  .hero-copy{padding-left:20px;padding-right:20px}
  .module-card{grid-template-columns:116px minmax(0,1fr)}
  .module-card h3{font-size:25px}
  .module-card p{font-size:14.5px}
}
