/* Casca da trilha Instagram Vitrine (protótipo instagram-vitrine.html): cabeçalho, etapas e lateral. */

.ivs-mobile {
  min-height: 100vh;
  background: #ffffff;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.ivs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 5;
}

.ivs-head img {
  height: 24px;
  width: auto;
  display: block;
}

.ivs-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.ivs-name {
  font-weight: 700;
  font-size: 14px;
}

.ivs-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--sky-2);
  border-radius: 999px;
  padding: 4px 10px;
}

.ivs-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.ivs-titlebar b {
  flex: 1;
  text-align: center;
  font-size: 15px;
}

.ivs-back,
.ivs-back-space {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ivs-back {
  border-radius: 999px;
  background: var(--band);
  color: var(--ink);
}

.ivs-steps {
  padding: 0 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.ivs-steps-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.ivs-steps-bar i {
  display: block;
  height: 100%;
  background: #4a9fe0;
}

.ivs-body {
  flex: 1;
  padding: 16px 16px 112px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ivs-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ivs-foot-m {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 255, 255, 0), #ffffff 30%);
  display: flex;
  justify-content: center;
  z-index: 6;
}

.ivs-foot-m .ivs-action {
  width: 100%;
  max-width: 528px;
}

.ivs-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  background: #9ccff2;
  color: #16507a;
  cursor: pointer;
}

.ivs-action.on {
  background: var(--focus);
  color: #ffffff;
}

.ivs-action:disabled {
  cursor: not-allowed;
}

.ivs-action:focus-visible,
.ivs-tab:focus-visible,
.ivs-item:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Desktop ---------- */

.ivs-desk {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
}

.ivs-side {
  flex: 0 0 280px;
  background: #1e2328;
  color: #ffffff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.ivs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.ivs-brand img {
  width: 28px;
  height: 28px;
}

.ivs-progress {
  background: #2a3540;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #c9d3dc;
}

.ivs-progress b {
  color: #ffffff;
  font-size: 18px;
}

.ivs-progress strong {
  color: #ffffff;
}

.ivs-bar {
  height: 6px;
  border-radius: 99px;
  background: #3a4652;
  overflow: hidden;
}

.ivs-bar i {
  display: block;
  height: 100%;
  background: var(--go);
}

.ivs-side-lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a97a3;
}

.ivs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ivs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #dce5ec;
  text-decoration: none;
  font-size: 14px;
}

.ivs-item.act {
  background: #2a3540;
  color: #ffffff;
}

.ivs-n {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: #3a4652;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.ivs-chip {
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}

.ivs-done {
  background: var(--go);
  color: var(--ink);
}

.ivs-doing {
  background: var(--brand);
  color: var(--ink);
}

.ivs-todo {
  background: #3a4652;
  color: #c9d3dc;
}

.ivs-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.ivs-bottom a,
.ivs-bottom button {
  color: #c9d3dc;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ivs-main {
  flex: 1;
  min-width: 0;
  padding: 40px 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ivs-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.ivs-crumb a {
  color: var(--muted);
}

.ivs-crumb b {
  color: var(--ink);
}

.ivs-saving {
  margin-left: auto;
  font-size: 13px;
}

.ivs-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ivs-tab {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.ivs-tab.ok {
  border-color: var(--go);
  color: var(--ok-ink);
  background: var(--ok-bg);
}

.ivs-tab.on {
  border-color: var(--focus);
  color: var(--brand-ink);
  background: var(--sky-2);
}

.ivs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.ivs-single {
  max-width: 820px;
}

.ivs-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ivs-sticky {
  position: sticky;
  top: 24px;
}

.ivs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.ivs-actions .ivs-action {
  min-width: 280px;
}

.ivs-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.ivs-foot img {
  height: 28px;
  width: auto;
}

/* ---------- Blocos interativos da trilha (formulários, opções, uploads) ---------- */

.ivs-h {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.ivs-radio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
}

.ivs-radio[aria-checked='true'] {
  border-color: var(--focus);
  background: var(--sky-2);
}

.ivs-radio .dot {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  border: 2px solid var(--input);
  margin-top: 2px;
}

.ivs-radio[aria-checked='true'] .dot {
  border: 6px solid var(--focus);
}

.ivs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ivs-choice {
  border: 1.5px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.ivs-choice[aria-pressed='true'],
.ivs-choice[aria-checked='true'] {
  border-color: var(--focus);
  background: var(--sky-2);
  color: var(--brand-ink);
}

.ivs-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px dashed var(--input);
  border-radius: 14px;
  padding: 14px;
  background: var(--band);
  cursor: pointer;
}

.ivs-upload:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.ivs-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ivs-upload .pic {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--brand-ink);
}

.ivs-upload .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivs-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ivs-checklist {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.ivs-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  cursor: pointer;
}

.ivs-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--go);
}

.ivs-check input:checked + span {
  color: var(--muted);
}

.ivs-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f2e, #1d3a50);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
}

.ivs-video iframe,
.ivs-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ivs-video .play {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ivs-index {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ivs-index li {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.ivs-index time {
  font-weight: 700;
  color: var(--brand-ink);
  min-width: 40px;
}

.ivs-module {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  background: #ffffff;
}

.ivs-module.act {
  border-color: var(--focus);
  background: var(--sky-2);
}

.ivs-module.locked {
  opacity: 0.6;
}

.ivs-module .num {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 999px;
  background: var(--band);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.ivs-module.done .num {
  background: var(--go);
}

.ivs-mchip {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--band);
  color: var(--muted-2);
  white-space: nowrap;
}

.ivs-mchip.done {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.ivs-mchip.doing {
  background: var(--sky-2);
  color: var(--brand-ink);
}

.ivs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ivs-stats > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ivs-stats b {
  font-family: var(--font-display);
  font-size: 24px;
}

.ivs-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ivs-swatch {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--line);
  cursor: pointer;
}

.ivs-swatch[aria-checked='true'] {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--focus);
}

.ivs-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ivs-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.ivs-icon[aria-checked='true'] {
  border-color: var(--focus);
  background: var(--sky-2);
}

.ivs-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ivs-tip {
  background: var(--sky-2);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--sky-ink);
}

@media (max-width: 1100px) {
  .ivs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ivs-sticky {
    position: static;
  }
}

/* ---------- Prévias ao vivo: perfil do Instagram, grade e story ---------- */

.ivp {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #111111;
  font-family: var(--font-body);
}

.ivp-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ivp-handle {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.ivp-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ivp-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
  padding: 3px;
}

.ivp-avatar span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid #ffffff;
  background: #e3e8ed center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: var(--muted-2);
  overflow: hidden;
}

.ivp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivp-counts {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 12px;
}

.ivp-counts b {
  display: block;
  font-size: 16px;
}

.ivp-bio {
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ivp-bio .cat {
  color: #737373;
}

.ivp-bio .txt {
  white-space: pre-line;
}

.ivp-bio .link {
  color: #00376b;
  font-weight: 700;
  word-break: break-all;
}

.ivp-empty {
  color: #a6b0b9;
}

.ivp-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ivp-buttons span {
  background: #efefef;
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
}

.ivp-buttons span:first-child {
  background: #0095f6;
  color: #ffffff;
}

.ivp-highlights {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0;
}

.ivp-hl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 60px;
  flex: none;
}

.ivp-hl i {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid #dbdbdb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 22px;
  overflow: hidden;
}

.ivp-hl i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivp-hl span {
  font-size: 11px;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ivp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 0 -14px -14px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.ivp-cell {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #eef1f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}

.ivp-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivp-cell.pinned {
  box-shadow: inset 0 0 0 2px var(--focus);
}

.ivp-cell.faded {
  opacity: 0.45;
}

.ivp-pin {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 1;
  font-size: 12px;
}

.ivp-story {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22% 16px;
  text-align: center;
}

.ivp-story .bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}

.ivp-story .bars i {
  flex: 1;
  height: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.4);
}

.ivp-story .bars i.on {
  background: #ffffff;
}

.ivp-story .show {
  position: absolute;
  top: 22px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

.ivp-story .text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.ivp-story .sticker {
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ivp-export {
  width: 390px;
  background: #ffffff;
  padding: 20px;
}

.ivp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ivp-compare img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.ivp-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

/* O trail.css herda a cor nos links (.iv a); os botões-link mantêm a cor do botão. */
.iv a.btn {
  color: var(--ink);
}

.iv a.btn-dark {
  color: #ffffff;
}
