/* Demo interativa — identidade Ikrion-IT (não JBJ) */

.demo-page {
  min-height: 100vh;
  padding-bottom: 2rem;
}

.demo-shell-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  background: rgba(14, 34, 56, 0.96);
  backdrop-filter: blur(10px);
  color: var(--white);
}

.demo-back-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.demo-shell-bar .brand-name {
  margin-left: 0.25rem;
}

.demo-intro {
  width: min(420px, calc(100% - 2rem));
  margin: 1.4rem auto 0.5rem;
  text-align: center;
}

.demo-intro h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  color: var(--navy);
  line-height: 1.15;
}

.demo-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.phone-stage {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
}

.phone {
  position: relative;
  width: min(390px, 100%);
  height: min(780px, calc(100vh - 11rem));
  min-height: 620px;
  background: var(--navy);
  border-radius: 32px;
  box-shadow:
    0 0 0 10px #0a1828,
    0 28px 60px rgba(14, 34, 56, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  background: #06101c;
  border-radius: 14px;
  z-index: 5;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 1.15rem 0.15rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.progress-track {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0 0.55rem;
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.progress-dot.is-active {
  background: var(--blue);
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(30, 111, 234, 0.28);
}

.progress-dot.is-done {
  background: var(--blue-soft);
}

.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  animation: screenIn 0.35s ease;
  position: relative;
}

.screen.is-active {
  display: flex;
}

.app-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem 0.85rem;
  color: var(--white);
}

.app-header-home {
  grid-template-columns: auto 1fr auto;
  padding-bottom: 1.1rem;
}

.app-header h2 {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 0 0 3px rgba(30, 111, 234, 0.3);
}

.hello {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.hello-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--blue-soft);
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sheet {
  flex: 1;
  min-height: 0;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  padding: 1.15rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sheet-scroll {
  overflow-y: auto;
  padding-bottom: 5.5rem;
  -webkit-overflow-scrolling: touch;
}

.app-brand {
  margin: 0.15rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.app-brand em {
  font-style: normal;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.55em;
  margin-left: 0.15rem;
}

.app-tagline {
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.35;
}

.menu {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(14, 34, 56, 0.22);
}

.menu-item:disabled,
.menu-item.is-muted {
  opacity: 0.42;
  cursor: not-allowed;
}

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--blue-soft);
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
}

.menu-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.mi-user::before {
  border-radius: 50%;
  box-shadow: 0 8px 0 -4px currentColor;
}

.mi-wait::before {
  border-radius: 50%;
  border-top-color: transparent;
}

.mi-truck::before {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: transparent;
}

.mi-ship::before {
  width: 0;
  height: 0;
  border: none;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid currentColor;
  transform: rotate(90deg);
}

.icon-bell {
  position: relative;
  width: 36px;
  height: 36px;
}

.icon-bell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transform: translate(-50%, -55%);
}

.icon-bell::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e85d5d;
}

.hint {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(30, 111, 234, 0.4);
  border-color: var(--blue);
}

.field.grow {
  flex: 1;
}

.cpf-row {
  display: flex;
  gap: 0.5rem;
  align-items: end;
}

.btn-ok {
  border: none;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  height: 2.85rem;
}

.btn-outline {
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--navy);
  border-radius: 12px;
  padding: 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.7;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(30, 111, 234, 0.1);
  border: 1px solid rgba(30, 111, 234, 0.25);
  color: var(--navy);
  font-size: 0.82rem;
  animation: riseSoft 0.35s ease;
}

.status-pill strong {
  color: var(--blue);
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9d63;
  box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.18);
  flex-shrink: 0;
}

.block-title {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.radio-row,
.radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.radio input {
  accent-color: var(--blue);
}

.animal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.total-line {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
}

.summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 34, 56, 0.04), rgba(30, 111, 234, 0.1));
  border: 1px solid var(--line);
}

.summary-card > div {
  display: grid;
  gap: 0.15rem;
  text-align: center;
}

.summary-card span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.summary-card strong {
  font-size: 0.88rem;
  color: var(--navy);
}

.calc-box {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.calc-box > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-box strong {
  color: var(--navy);
}

.calc-total {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy) !important;
}

.calc-total strong {
  color: var(--blue);
  font-size: 1.05rem;
}

.app-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 35%);
}

.btn-primary-app {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 111, 234, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary-app:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #185fd0;
}

.btn-primary-app:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.success-pane {
  flex: 1;
  margin-top: 0.35rem;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  padding: 2rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.success-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 111, 234, 0.18), transparent 65%),
    var(--blue-pale);
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.success-ring::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 700;
}

.success-pane h2 {
  margin: 0;
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.55rem;
}

.success-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 18rem;
}

.success-pane .summary-card {
  width: 100%;
  margin: 0.35rem 0;
}

.success-pane .btn-primary-app {
  margin-top: 0.35rem;
}

.success-cta {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.demo-footnote {
  width: min(390px, calc(100% - 2rem));
  margin: 1rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-footnote a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseSoft {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-height: 760px) {
  .phone {
    height: min(720px, calc(100vh - 9.5rem));
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .status-pill,
  .success-ring,
  .menu-item,
  .btn-primary-app {
    animation: none !important;
    transition: none !important;
  }
}
