/* Bloco 01: planejamento que a pessoa experimenta */
.plano { position: relative; min-width: 0; max-width: 100%; padding: clamp(22px, 3.2vw, 44px); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 9px 0 var(--ink); }
.tape--plano { top: -16px; left: 72%; margin-left: 0; width: 130px; }
.plano__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4.4vw, 64px); align-items: center; }
.premium-main .plano h3 { margin-top: 2px; font-size: clamp(2rem, 1.5rem + 2vw, 3.125rem); line-height: 1.08; }
.plano__copy > p { max-width: 36em; margin-top: 14px; color: var(--ink-soft); font-size: 1.125rem; }
.plano__copy .premium-checks { margin-top: 18px; }

.plano__form { position: relative; padding: 22px; background: #fffdf7; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--ink); transform: rotate(.7deg); }
.plano__try { position: absolute; top: -34px; right: 16px; font-size: 1.3rem; transform: rotate(-3deg); }
.plano__field + .plano__field { margin-top: 14px; }
.plano__field p { font-size: .9375rem; font-weight: 800; }
.plano__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.plano__pills button { flex: 1; min-height: 44px; padding: 6px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 11px; color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform .18s cubic-bezier(.2, 1.6, .4, 1), background-color .18s, color .18s; }
.plano__pills button:hover { transform: translateY(-2px); }
.plano__pills button.is-on { background: var(--ink); color: #fff; }
.plano__go { width: 100%; margin-top: 16px; font-family: var(--sans); word-spacing: .09em; cursor: pointer; }
.plano__go[disabled] { opacity: .75; cursor: progress; }
.plano__hint { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .78rem; font-weight: 600; text-align: center; }

.plano__steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(24px, 3vw, 36px); }
.plano__steps::before, .plano__steps::after { content: ""; position: absolute; left: 10%; right: 10%; top: 12px; height: 4px; border-radius: 99px; background: var(--line); }
.plano__steps::after { background: var(--brand); transform: scaleX(var(--done, 0)); transform-origin: left; transition: transform .3s linear; }
.plano__steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; color: var(--ink-soft); font-size: .875rem; font-weight: 700; text-align: center; line-height: 1.2; }
.plano__steps li::before { content: ""; width: 28px; height: 28px; background: #fffdf7 center / 62% no-repeat; border: 2px solid var(--line); border-radius: 99px; transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.2, 1.8, .4, 1); }
.plano__steps li.is-on { color: var(--ink); }
.plano__steps li.is-on::before { background-color: #159a61; border-color: #159a61; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E"); transform: scale(1.14); }

.plano__top > *, .plano__board { min-width: 0; }
.plano__board { margin-top: 18px; padding: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; }
.plano__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.plano__views { display: flex; gap: 4px; padding: 4px; background: var(--paper-deep); border-radius: 12px; }
.plano__views button { padding: 8px 16px; background: transparent; border: 0; border-radius: 9px; color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.plano__views button[aria-selected="true"] { background: var(--ink); color: #fff; }
.plano__count { font-size: .9375rem; font-weight: 700; color: var(--ink-soft); }
.plano__count b { color: var(--brand-deep); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.plano__view { min-height: 356px; }
.plano__view[hidden] { display: none; }

/* Quadro */
.qd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.qd__col { display: flex; flex-direction: column; min-height: 348px; padding: 8px; background: #faf6ee; border: 1.5px solid var(--line); border-radius: 12px; transition: background-color .15s, border-color .15s; }
.qd__col.is-today { background: #fff1ea; border-color: var(--brand); }
.qd__col.is-over { background: #ffe0d2; border-color: var(--brand-deep); }
.qd__col header { padding-bottom: 7px; }
.qd__col header b { display: block; font-size: 1rem; font-weight: 800; }
.qd__col.is-today header b { color: var(--brand-deep); }
.qd__col header small { color: var(--ink-soft); font-size: .75rem; font-weight: 600; }
.qd__cards { display: grid; align-content: start; gap: 6px; flex: 1; }
.qd__free { display: grid; place-items: center; align-content: center; flex: 1; gap: 4px; color: var(--ink-soft); font-size: .8125rem; font-weight: 600; text-align: center; line-height: 1.25; }
.qd__free img { width: 34px; height: 34px; }

.pcard { --c: #5b7fd6; --t: #f1f5fd; position: relative; padding: 7px 8px 7px 11px; background: var(--t); border-radius: 9px; box-shadow: inset 4px 0 0 var(--c); font-size: .78rem; line-height: 1.22; user-select: none; touch-action: auto; animation: cardin .42s cubic-bezier(.2, 1.5, .4, 1) backwards; animation-delay: calc(var(--n, 0) * 55ms); }
.pcard small { display: block; color: var(--ink-soft); font-size: .6875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard b { display: block; margin: 1px 0 3px; font-size: .8125rem; font-weight: 800; }
.pcard i { color: var(--ink-soft); font-size: .6875rem; font-style: normal; font-weight: 700; }
.pcard--adm { --c: #2fa66c; --t: #eefaf3; } .pcard--port { --c: #df6da0; --t: #fdf0f6; } .pcard--rl { --c: #f0953e; --t: #fff5ea; } .pcard--penal { --c: #8d6be0; --t: #f4f0fd; } .pcard--info { --c: #2aa5ae; --t: #ebf8f9; }
@media (pointer: fine) { .qd .pcard { cursor: grab; } }
.pcard.is-drag { z-index: 30; cursor: grabbing; box-shadow: inset 4px 0 0 var(--c), 0 12px 24px rgba(36, 26, 18, .3); transform: rotate(-3deg) scale(1.05); pointer-events: none; animation: none; }
.pcard.is-pulse { animation: pulsecard .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cardin { from { opacity: 0; transform: translateY(-16px) scale(.8) rotate(-4deg); } }
@keyframes pulsecard { 40% { transform: scale(1.1); box-shadow: inset 4px 0 0 var(--c), 0 0 0 3px var(--brand); } }

/* Agenda */
.ag { display: grid; grid-template-columns: 44px repeat(6, minmax(0, 1fr)); gap: 0 6px; }
.ag__times { display: grid; grid-template-rows: 28px repeat(8, 40px); color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.ag__day { position: relative; height: 348px; overflow: hidden; padding-top: 28px; background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 40px; background-position: 0 28px; }
.ag__day > b { position: absolute; top: 3px; left: 0; right: 0; background: #fff; font-size: .875rem; font-weight: 800; text-align: center; }
.ag__day.is-today > b { color: var(--brand-deep); }
.ag__day .pcard { position: absolute; left: 0; right: 0; overflow: hidden; padding-block: 4px; }
.ag__day .pcard small { display: none; }
.ag__day .pcard b { margin: 0; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ciclo */
.cc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(16px, 4vw, 48px); align-items: center; min-height: 356px; }
.cc__ring { position: relative; width: min(100%, 300px); margin-inline: auto; }
.cc__ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.cc__ring circle { fill: none; stroke-width: 26; stroke-dasharray: 0 440; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); }
.cc__ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.cc__ring b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.cc__ring small { color: var(--ink-soft); font-size: .8125rem; font-weight: 700; }
.cc__list { display: grid; gap: 7px; }
.cc__list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #faf6ee; border-radius: 10px; font-size: .9375rem; font-weight: 700; animation: rowcc .4s cubic-bezier(.2, 1.3, .4, 1) backwards; animation-delay: calc(var(--n) * 70ms); }
.cc__list u { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.cc__list em { margin-left: auto; color: var(--ink-soft); font-size: .8125rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.cc__list li.is-now { background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--ink); }
.cc__list li.is-now em { color: #fff; }
@keyframes rowcc { from { opacity: 0; transform: translateX(18px); } }

.plano__skel { display: grid; place-items: center; min-height: 348px; color: var(--ink-soft); font-size: 1.0625rem; font-weight: 700; text-align: center; }
.plano__ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 14px; }
.plano__ctrl p { font-weight: 600; }
.plano__ctrl p b { font-weight: 800; }
.plano__ctrl .hand { margin-left: 6px; }
.plano__ctrl div { display: flex; flex-wrap: wrap; gap: 6px; }
.plano__ctrl button { min-height: 42px; padding: 6px 14px; background: #fffdf7; border: 2px solid var(--ink); border-radius: 11px; box-shadow: 0 3px 0 var(--ink); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 800; cursor: pointer; transition: transform .14s, box-shadow .14s; }
.plano__ctrl button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.plano__ctrl button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

@media (max-width: 1020px) {
  .plano__top { grid-template-columns: minmax(0, 1fr); }
  .plano__form { margin-top: 24px; }
}
@media (max-width: 860px) {
  .plano__view { overflow-x: auto; scrollbar-width: none; }
  .plano__view::-webkit-scrollbar { display: none; }
  .qd { grid-template-columns: repeat(7, 148px); }
  .ag { grid-template-columns: 40px repeat(6, 104px); }
  .cc { grid-template-columns: minmax(0, 1fr); }
  .cc__ring { width: 220px; }
}
@media (max-width: 720px) {
  .plano { padding: 18px 14px; box-shadow: 5px 6px 0 var(--ink); }
  .plano__steps li { font-size: .6875rem; }
  .plano__steps li::before { width: 24px; height: 24px; }
  .plano__views { width: 100%; }
  .plano__views button { flex: 1; padding: 8px 4px; font-size: .78rem; white-space: normal; line-height: 1.15; }
  .plano__ctrl div { width: 100%; }
  .plano__ctrl button { flex: 1; padding-inline: 6px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .cc__list li { animation: none; }
  .cc__ring circle, .plano__steps::after { transition: none; }
}
