/*
 * A moldura do aparelho e as telas da PWA, redesenhadas a partir de
 * `docs/wireframes/medvoice.html`. As proporções, os raios e a tinta são os
 * mesmos do wireframe — quem chega pela landing tem de reconhecer o produto
 * quando abrir o app.
 */

.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 620;
  padding: 12px;
  border-radius: 40px;
  background: var(--paper);
  box-shadow: 0 30px 70px -24px rgba(82, 40, 164, 0.75),
    0 0 0 1px rgba(236, 226, 245, 0.14), inset 0 0 0 1px rgba(27, 18, 48, 0.06);
  display: flex;
  flex-direction: column;
}

.phone__screen {
  position: relative;
  flex: 1;
  border-radius: 28px;
  background: var(--violet-tint);
  color: var(--ink);
  padding: 16px 15px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.phone__notch {
  width: 88px;
  height: 19px;
  margin: 0 auto 9px;
  border-radius: var(--r-pill);
  background: var(--ink);
  flex: none;
}

/* Pilha de telas: uma visível por vez, trocadas por `is-on`. */
.phone__stack {
  position: relative;
  flex: 1;
  border-radius: 28px;
  overflow: hidden;
}

.phone__stack > .phone__screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.phone__stack > .phone__screen.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ------------------------------------------------- tipografia da tela -- */

.scr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}

.scr-mark {
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: -0.04em;
}

.scr-mark i {
  font-style: normal;
  color: var(--violet-deep);
}

.scr-eyebrow {
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.scr-eyebrow--accent {
  color: var(--violet-dark);
}

.scr-head {
  font-size: 1.25rem;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.scr-head em {
  font-style: normal;
  color: var(--violet-deep);
  display: block;
}

.scr-body {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.scr-muted {
  color: var(--ink-3);
}

.scr-center {
  text-align: center;
}

.scr-spacer {
  flex: 1;
}

.scr-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 14px -6px rgba(82, 40, 164, 0.18);
  flex: none;
}

.scr-card--flat {
  background: var(--violet-soft, #e8ddf6);
  box-shadow: none;
}

.scr-card__label {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.scr-card__title {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.scr-cta {
  flex: none;
  padding: 12px;
  border-radius: var(--r-pill);
  background: var(--violet-deep);
  color: var(--paper);
  text-align: center;
  font-weight: 600;
  font-size: 0.76rem;
  box-shadow: 0 10px 22px -10px rgba(139, 111, 212, 0.9);
}

.scr-cta--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid rgba(27, 18, 48, 0.12);
  box-shadow: none;
}

.scr-field {
  flex: none;
  border-radius: 12px;
  border: 1px solid rgba(27, 18, 48, 0.12);
  background: var(--paper);
  padding: 9px 11px;
  font-size: 0.68rem;
  color: var(--ink-3);
}

.scr-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.scr-check i {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--violet-deep);
  color: var(--paper);
  font-style: normal;
  font-size: 0.56rem;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.scr-quote {
  border-left: 2px solid var(--violet);
  padding-left: 9px;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--ink-2);
  font-style: italic;
}

/* -------------------------------------------------------- tela 03 · gravar */

.scr-timer {
  font-family: var(--mono);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.scr-wave {
  width: 100%;
  height: 62px;
  flex: none;
}

.scr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ok);
  font-weight: 500;
}

.scr-stop {
  align-self: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.62rem;
  box-shadow: 0 0 0 6px rgba(197, 84, 123, 0.16);
  flex: none;
}

/* --------------------------------------------------- tela 04 · processar */

.scr-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scr-step {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  opacity: 0.42;
  transition: opacity 0.5s var(--ease);
}

.scr-step.is-on {
  opacity: 1;
}

.scr-step__bullet {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--violet);
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  color: var(--paper);
  margin-top: 2px;
  background: transparent;
  transition: background 0.5s var(--ease);
}

.scr-step.is-on .scr-step__bullet {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
}

.scr-step__title {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: -0.01em;
}

.scr-step__note {
  font-size: 0.6rem;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ------------------------------------------------------ tela 05 · revisão */

.scr-doc {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.scr-sec {
  background: var(--paper);
  border-radius: 11px;
  padding: 9px 10px;
}

.scr-sec__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.scr-sec__name {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.scr-sec__src {
  font-size: 0.53rem;
  font-weight: 600;
  color: var(--violet-dark);
  white-space: nowrap;
}

.scr-sec__text {
  font-size: 0.63rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.scr-sec__text--warn {
  color: var(--danger);
  font-weight: 600;
}
