/* Protótipo do app MetLife Private | Oneck
   Tokens derivados do MetLife Global Design System (design.metlife.com).
   Raio de botões, sombras e espaçamentos finos vivem nas bibliotecas Adobe XD da MetLife
   e devem ser conferidos quando o time tiver acesso a elas. */

:root {
  /* Primárias */
  --blue-1: #0090DA;
  --blue-2: #007ABC;
  --dark-blue: #0061A0;
  --green: #A4CE4E;
  --navy: #1E4C76;
  /* Funcional */
  --red: #D42123;
  /* Neutros */
  --white: #FFFFFF;
  --gray-1: #F2F2F2;
  --gray-2: #D9D9D6;
  --gray-3: #A7A8AA;
  --gray-4: #6E6E6E;
  --text: #333333;

  /* Superfícies derivadas das primárias com transparência */
  --bg: #F2F2F2;
  --tint-blue: rgba(0, 144, 218, .12);
  --tint-green: rgba(164, 206, 78, .22);
  --line: rgba(51, 51, 51, .08);

  --font: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --r-card: 24px;
  --r-tile: 20px;
  --r-btn: 16px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(51, 51, 51, .05), 0 10px 30px rgba(51, 51, 51, .07);
  --shadow-lift: 0 2px 4px rgba(51, 51, 51, .06), 0 18px 40px rgba(51, 51, 51, .12);
  --gutter: 16px;

  /* Barra de status: 44px no aparelho simulado; no celular real, a área segura do sistema */
  --sb: 44px;
  --safe-b: 0px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: #E9EAEA; color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--dark-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
p { margin: 0; }

/* =====================================================================
   Palco de apresentação (desktop)
   ===================================================================== */
.stage { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: 100%; }
.panel {
  background: var(--white); border-right: 1px solid var(--gray-2);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 22px;
  height: 100vh; overflow-y: auto;
}
.panel h1 { font-size: 19px; line-height: 1.3; margin: 0; font-weight: 700; }
.panel .sub { color: var(--gray-4); font-size: 13px; margin: 4px 0 0; }
.panel .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; background: var(--gray-1); border-radius: 6px; padding: 2px 8px; }
.nav-group { display: grid; gap: 2px; }
.nav-group h2 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-4); margin: 0 0 6px; }
.nav-link { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.nav-link:hover { background: var(--gray-1); }
.nav-link[aria-current="true"] { background: var(--gray-1); font-weight: 700; }
.nav-link[aria-current="true"]::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--dark-blue); }
.panel .foot { margin-top: auto; font-size: 12px; color: var(--gray-4); }

.viewer { position: relative; height: 100vh; overflow-y: auto; min-width: 0; }
.toolbar { position: absolute; top: 16px; right: 20px; display: flex; gap: 8px; z-index: 5; }
.seg { border: 1px solid var(--gray-2); background: var(--white); border-radius: 10px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.seg[aria-pressed="true"] { background: var(--dark-blue); border-color: var(--dark-blue); color: var(--white); }
.proto-fab { display: none; }

.single { height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.caption { position: absolute; left: 20px; bottom: 14px; font-size: 12px; color: var(--gray-4); margin: 0; }

/* Aparelho: desenhado em 390 x 844 e escalado por igual para ocupar 90% da altura da janela */
.phone-fit { position: relative; flex: none; }
.phone-fit > .phone { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.phone {
  width: 390px; height: 844px; flex: none;
  background: #1B1B1B; border-radius: 56px; padding: 12px;
  box-shadow: 0 30px 70px rgba(51, 51, 51, .28), inset 0 0 0 2px #2c2c2c;
}
.screen {
  position: relative; width: 100%; height: 100%;
  background: var(--bg); border-radius: 44px; overflow: hidden;
  display: flex; flex-direction: column;
}
.statusbar { flex: none; height: var(--sb); padding: 14px 28px 0; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; position: relative; z-index: 3; }
.statusbar.on-dark { color: var(--white); }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #1B1B1B; border-radius: 20px; z-index: 6; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.scroll.dark { margin-top: calc(-1 * var(--sb)); }
.scroll::-webkit-scrollbar { width: 0; }
.tab-spacer { flex: none; height: calc(96px + var(--safe-b)); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 32px 24px; padding: 72px 32px 48px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; padding: 0; }
.mini-frame { width: 195px; height: 422px; overflow: hidden; border-radius: 28px; }
.mini-frame .phone { transform: scale(.5); transform-origin: top left; pointer-events: none; box-shadow: 0 12px 30px rgba(51,51,51,.2); }
.mini span { font-size: 13px; font-weight: 700; text-align: center; }
.mini small { display: block; font-weight: 400; color: var(--gray-4); }

/* =====================================================================
   Tipografia e layout do app
   ===================================================================== */
.app { flex: none; padding: 4px var(--gutter) 24px; display: flex; flex-direction: column; gap: 20px; }
.h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0; }
.h3 { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-4); margin: 0; }
.muted { color: var(--gray-4); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }

/* Cabeçalho */
.appbar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; position: sticky; top: 0; z-index: 4; background: rgba(242, 242, 242, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.appbar .title { flex: 1; text-align: center; font-weight: 700; font-size: 16px; }
.appbar .spacer { width: 40px; flex: none; }

.round {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none;
  display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow); position: relative;
  color: var(--text); /* não herda o branco de fundos escuros */
}
.round.solid { background: var(--dark-blue); color: var(--white); box-shadow: none; }
.round.tint { background: var(--tint-blue); color: var(--dark-blue); box-shadow: none; }
.round.sm { width: 32px; height: 32px; }
.round.glass { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.round .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-1); border: 2px solid var(--white); box-sizing: content-box; }

/* O logo nunca estica: altura fixa, largura pela proporção, sem herdar stretch do flex */
.logo { display: block; flex: none; align-self: flex-start; height: 28px; width: auto; max-width: none; object-fit: contain; }
.logo.on-dark { filter: brightness(0) invert(1); }
.splash .logo { align-self: center; }

/* Botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 18px;
  border-radius: var(--r-btn); border: 0;
  background: var(--dark-blue); color: var(--white); font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 20px rgba(0, 97, 160, .25);
}
.btn:hover { background: #00508A; }
.btn.secondary { background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.btn.secondary:hover { background: #FAFAFA; }
.btn.on-dark { background: var(--white); color: var(--text); box-shadow: none; }
.btn.ghost-dark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); color: var(--white); box-shadow: none; }
.btn.sm { min-height: 44px; font-size: 14px; border-radius: 14px; }
.btn[disabled] { background: var(--gray-2); color: var(--gray-4); box-shadow: none; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Cards
   ===================================================================== */
.card { background: var(--white); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow); }
.card.soft { background: var(--tint-blue); box-shadow: none; }
.card.note { display: flex; gap: 12px; align-items: flex-start; }

.ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--tint-blue); color: var(--dark-blue); }
.ico.green { background: var(--tint-green); }
.ico.sm { width: 32px; height: 32px; border-radius: 11px; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--white); border-radius: var(--r-tile); padding: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; border: 0; min-width: 0;
}
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile.flat { box-shadow: none; background: var(--bg); }
.tile .lbl { font-size: 12px; color: var(--gray-4); }
.tile .val { font-size: 15px; font-weight: 700; line-height: 1.3; }
.tile .meta { font-size: 12px; color: var(--gray-4); }
.tile .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tri .tile { padding: 12px; gap: 8px; }
.tri .tile .val { font-size: 14px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; width: 100%;
  background: var(--white); border: 0; border-radius: 18px; text-align: left; box-shadow: var(--shadow);
}
.list-item .sub { display: block; font-size: 12.5px; color: var(--gray-4); }
.list-item .chev { color: var(--gray-3); flex: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--white); align-self: flex-start; }
.pill.ok { background: var(--tint-green); }
.pill.ok::before, .pill.wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pill.wait { background: var(--tint-blue); }
.pill.wait::before { background: var(--blue-1); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter) 22px; margin: -10px calc(var(--gutter) * -1) -18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; border: 0; background: var(--white); border-radius: var(--r-pill); padding: 9px 16px; font-size: 14px; white-space: nowrap; box-shadow: var(--shadow); }
.chip[aria-pressed="true"] { background: var(--dark-blue); color: var(--white); font-weight: 700; box-shadow: 0 6px 16px rgba(0, 97, 160, .25); }
.chip.static { box-shadow: none; background: var(--white); }

.search {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 6px 0 16px;
  background: var(--white); border: 0; border-radius: var(--r-pill); box-shadow: var(--shadow); color: var(--gray-4); font-size: 14px; text-align: left;
}
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--text); background: transparent; min-width: 0; }
.search .round { margin-left: auto; }

.photo { background: var(--tint-blue); border-radius: 18px; display: grid; place-items: center; position: relative; overflow: hidden; }
.photo .tag-photo { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--gray-4); }
.photo .over { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; }
.glass-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); }
.expr { position: relative; display: grid; place-items: center; }
.expr .blob { position: absolute; width: 58%; height: 58%; border-radius: 50%; background: var(--green); left: 32%; top: 30%; }
.expr svg { position: relative; color: var(--dark-blue); }

/* =====================================================================
   Componentes de tela
   ===================================================================== */
.next-card {
  position: relative; overflow: hidden; border: 0; width: 100%; text-align: left; color: var(--white);
  border-radius: 28px; padding: 20px; min-height: 196px; background: var(--navy);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; box-shadow: var(--shadow-lift);
}
.next-card .h2 { color: var(--white); }
.nc-top { display: flex; gap: 14px; align-items: flex-start; }
.glass-row { display: flex; flex-wrap: wrap; gap: 8px; }
.glass-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); font-size: 13px; background: rgba(30, 76, 118, .62); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white); }
.countdown { position: relative; width: 72px; height: 72px; flex: none; }
.countdown svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.countdown .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.countdown b { font-size: 24px; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; margin-top: 2px; }

.graphic { position: relative; overflow: hidden; color: var(--white); }
.graphic > svg.bg, .next-card > svg.bg, .policy > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.graphic > .content, .next-card > .content { position: relative; }

.fullbleed { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--navy); }
.fullbleed .content { flex: 1; display: flex; flex-direction: column; padding: calc(var(--sb) + 12px) 24px calc(32px + var(--safe-b)); gap: 16px; }
.fullbleed .h1, .fullbleed p { color: var(--white); }
.fullbleed .h1 { font-size: 32px; }
.fullbleed .lead { font-size: 18px; line-height: 1.5; }

.journey { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.journey::before { content: ""; position: absolute; top: 11px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: var(--gray-1); }
.journey .fill { position: absolute; top: 11px; left: 10%; height: 3px; border-radius: 3px; background: var(--dark-blue); }
.j-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--gray-4); }
.j-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--gray-2); display: grid; place-items: center; }
.j-step.done { color: var(--text); }
.j-step.done .j-dot { background: var(--dark-blue); border-color: var(--dark-blue); color: var(--white); }
.j-step.now .j-dot { border-color: var(--dark-blue); border-width: 7px; }
.j-step.now { font-weight: 700; color: var(--text); }

.concierge { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 18px; background: var(--tint-blue); color: var(--dark-blue); display: grid; place-items: center; font-weight: 700; flex: none; position: relative; }
.avatar.sm { width: 40px; height: 40px; border-radius: 14px; font-size: 13px; }
.avatar.lg { width: 72px; height: 72px; border-radius: 24px; font-size: 22px; }
.avatar .on { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid var(--white); }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.actions { display: flex; gap: 8px; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: -10px calc(var(--gutter) * -1) -14px; padding: 10px var(--gutter) 30px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.hscroll::-webkit-scrollbar { display: none; }
.exp-mini { flex: none; width: 168px; background: var(--white); border: 0; border-radius: 22px; padding: 8px 8px 12px; text-align: left; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); scroll-snap-align: start; }
.exp-mini .txt { padding: 0 6px; display: flex; flex-direction: column; gap: 2px; }

.exp-card { background: var(--white); border: 0; border-radius: var(--r-card); padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 12px; width: 100%; box-shadow: var(--shadow); }
.exp-body { display: flex; align-items: center; gap: 12px; padding: 0 8px 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--gray-4); margin-top: 4px; }
.meta-row span { display: inline-flex; align-items: center; gap: 4px; }

.hero { position: relative; flex: none; }
.hero .photo { border-radius: 0; }
.hero .nav { position: absolute; top: 8px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.sheet { position: relative; margin-top: -28px; background: var(--bg); border-radius: 28px 28px 0 0; padding-top: 22px; }

.sticky-foot { margin-top: auto; position: sticky; bottom: 0; z-index: 4; padding: 12px var(--gutter) calc(20px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, rgba(242,242,242,0)); display: flex; flex-direction: column; gap: 8px; }
.foot-bar { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: 22px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow-lift); }
.foot-bar .btn { width: auto; flex: 1; min-height: 48px; }
.foot-bar .price { display: flex; flex-direction: column; line-height: 1.25; }
.foot-bar .price b { font-size: 15px; }
.foot-bar .price span { font-size: 12px; color: var(--gray-4); }

.ticket { position: relative; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); }
.ticket .t-top { padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.ticket .t-bottom { padding: 18px; }
.ticket .perf { position: relative; height: 0; border-top: 2px dashed var(--gray-2); margin: 0 22px; }
.ticket .perf::before, .ticket .perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket .perf::before { left: -34px; }
.ticket .perf::after { right: -34px; }
.date-big { display: flex; align-items: center; gap: 14px; }
.date-badge { width: 60px; height: 64px; border-radius: 18px; background: var(--dark-blue); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; flex: none; }
.date-badge b { font-size: 24px; }
.date-badge span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.date-badge.tint { background: var(--tint-blue); color: var(--dark-blue); }

.timeline { display: flex; flex-direction: column; }
.t-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.t-item:last-child { padding-bottom: 0; }
.t-line { position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--gray-2); }
.t-item:last-child .t-line { display: none; }
.t-item.done .t-line { background: var(--dark-blue); }
.t-item.done .j-dot { background: var(--dark-blue); border-color: var(--dark-blue); color: var(--white); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 13px; }
.input { width: 100%; min-height: 52px; border: 1.5px solid transparent; border-radius: 16px; padding: 13px 16px; font: inherit; font-size: 16px; color: var(--text); background: var(--white); box-shadow: var(--shadow); }
.input:focus { outline: none; border-color: var(--dark-blue); }
textarea.input { min-height: 92px; resize: none; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.hint { font-size: 12.5px; color: var(--gray-4); }
.error { font-size: 13px; display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.error::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 2px; background: var(--red); }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp span { height: 60px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 24px; font-weight: 700; border: 1.5px solid transparent; }
.otp span.cursor { border-color: var(--dark-blue); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { border-color: transparent; } }

.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1.5px solid transparent; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); text-align: left; }
.choice .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray-3); flex: none; display: grid; place-items: center; }
.choice[aria-checked="true"] { border-color: var(--dark-blue); }
.choice[aria-checked="true"] .mark { border-color: var(--dark-blue); }
.choice[aria-checked="true"] .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dark-blue); }

.date-strip { display: flex; gap: 10px; overflow-x: auto; margin: -10px calc(var(--gutter) * -1) -20px; padding: 10px var(--gutter) 34px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date { flex: none; width: 64px; height: 84px; border: 0; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--gray-4); }
.date b { font-size: 22px; color: var(--text); line-height: 1.1; }
.date[aria-pressed="true"] { background: var(--dark-blue); color: var(--white); box-shadow: 0 10px 22px rgba(0, 97, 160, .3); }
.date[aria-pressed="true"] b { color: var(--white); }
.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hours .chip { text-align: center; padding: 10px 0; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--tint-blue); color: var(--dark-blue); display: grid; place-items: center; }
.stepper b { font-size: 18px; min-width: 14px; text-align: center; }

.toggle { width: 50px; height: 30px; border-radius: 99px; background: var(--gray-2); border: 0; position: relative; flex: none; transition: background .25s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(51,51,51,.2); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.toggle[aria-checked="true"] { background: var(--dark-blue); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow); }
.segmented button { border: 0; background: none; border-radius: var(--r-pill); padding: 9px 0; font-size: 13px; }
.segmented button[aria-pressed="true"] { background: var(--dark-blue); color: var(--white); font-weight: 700; }

.progress { height: 6px; border-radius: 6px; background: var(--gray-1); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 6px; background: var(--dark-blue); }

.policy { position: relative; overflow: hidden; border-radius: 26px; padding: 20px; min-height: 200px; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lift); }
.policy > .content { position: relative; display: flex; flex-direction: column; gap: 4px; }
.policy .num { font-size: 20px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.chat { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; }
.msg { max-width: 80%; padding: 11px 14px; border-radius: 20px; font-size: 14px; line-height: 1.45; }
.msg.them { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.me { align-self: flex-end; background: var(--dark-blue); color: var(--white); border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.day { align-self: center; font-size: 12px; color: var(--gray-4); background: var(--white); padding: 3px 12px; border-radius: 99px; }
.typing { display: inline-flex; align-self: flex-start; background: var(--white); border-radius: 20px; border-bottom-left-radius: 6px; padding: 12px 14px; box-shadow: var(--shadow); }
.dock { flex: none; padding: 6px 0 calc(96px + var(--safe-b)); background: var(--bg); }
.dock .chips { margin: 0; }
.composer { display: flex; gap: 8px; margin: 6px 12px 0; padding: 6px; background: var(--white); border-radius: var(--r-pill); box-shadow: var(--shadow); }
.composer input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 0 12px; background: transparent; color: var(--text); min-width: 0; }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--dark-blue); color: var(--white); display: grid; place-items: center; flex: none; }

.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps button { height: 42px; border: 0; border-radius: 12px; background: var(--bg); font-weight: 700; font-size: 13px; padding: 0; }
.nps button[aria-pressed="true"] { background: var(--dark-blue); color: var(--white); box-shadow: 0 6px 14px rgba(0, 97, 160, .3); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 18px; padding: 12px 4px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 18px; }
.stats span { font-size: 11.5px; color: var(--gray-4); }

/* Barra de abas flutuante: inativas só com ícone, ativa vira pílula com ícone e nome */
.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: calc(14px + var(--safe-b)); z-index: 5;
  display: flex; align-items: center; gap: 4px; padding: 8px; height: 68px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 34px; box-shadow: var(--shadow-lift);
}
.tab {
  flex: 1 1 0; min-width: 44px; height: 52px; border: 0; border-radius: 26px; background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gray-4); overflow: hidden;
}
.tab svg { flex: none; color: var(--gray-4); }
.tab .tab-label { display: none; white-space: nowrap; font-size: 14px; font-weight: 700; }
.tab:hover { background: var(--gray-1); }
.tab[aria-current="page"] { flex: 0 0 auto; padding: 0 20px 0 16px; background: var(--dark-blue); color: var(--white); box-shadow: 0 8px 18px rgba(0, 97, 160, .28); }
.tab[aria-current="page"] svg { color: var(--white); }
.tab[aria-current="page"] .tab-label { display: inline; }

.toast { position: absolute; left: 16px; right: 16px; bottom: calc(100px + var(--safe-b)); z-index: 7; background: var(--text); color: var(--white); border-radius: 16px; padding: 13px 16px; font-size: 14px; box-shadow: var(--shadow-lift); animation: toast 2.6s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* =====================================================================
   Movimento
   ===================================================================== */
/* transform é do GSAP: o CSS não transiciona transform para não brigar com as animações */
.btn, .chip, .date, .list-item, .exp-card, .exp-mini, .nps button, .round, .tile, .choice, .tab { transition: background-color .2s ease, box-shadow .2s ease; }
.btn:active, .chip:active, .date:active, .nps button:active, .exp-card:active, .exp-mini:active, .tile:active, .choice:active, .list-item:active, .round:active { transform: scale(.97); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }

.splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: var(--white); overflow: hidden; }
.splash-logo { height: 40px; }
.splash-line { width: 120px; height: 3px; border-radius: 3px; background: var(--gray-1); overflow: hidden; }
.splash-line span { display: block; height: 100%; background: var(--dark-blue); transform-origin: 0 50%; }
.splash-cover { position: absolute; left: calc(100% - 950px); top: calc(100% - 950px); width: 1900px; height: 1900px; border-radius: 50%; background: var(--navy); transform: scale(0); }

.success-wrap { position: relative; width: 72px; height: 72px; }
.success-badge { position: absolute; inset: 0; border-radius: 50%; background: var(--white); color: var(--dark-blue); display: grid; place-items: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); opacity: 0; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkle { position: absolute; opacity: .9; }

/* =====================================================================
   Mapa de fluxos (React Flow)
   ===================================================================== */
.flow { position: absolute; inset: 0; background: #ECEDED; }
.flow .react-flow { font-family: var(--font); }
.fnode { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 14px 14px 10px; background: var(--white); border-radius: 26px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.fnode.is-happy { border-color: rgba(0, 97, 160, .35); }
.fnode.is-selected, .fnode:hover { border-color: var(--dark-blue); box-shadow: var(--shadow-lift); }
.fnode-label { width: 195px; display: flex; flex-direction: column; line-height: 1.3; }
.fnode-label b { font-size: 14px; }
.fnode-label span { font-size: 11px; color: var(--gray-4); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.fnode-hint { font-size: 11px; color: var(--gray-3); }
.fnode .mini-frame .phone { box-shadow: 0 8px 20px rgba(51,51,51,.18); }
.fhandle.react-flow__handle { width: 12px; height: 12px; background: var(--dark-blue); border: 3px solid var(--white); }
.flane { border-radius: 36px; background: rgba(255, 255, 255, .55); border: 1px dashed rgba(51, 51, 51, .14); position: relative; }
.flane-title { position: absolute; top: 28px; left: 28px; display: flex; flex-direction: column; gap: 2px; width: 160px; }
.flane-title b { font-size: 26px; line-height: 1.15; }
.flane-title span { font-size: 13px; color: var(--gray-4); }
.flegend { display: flex; flex-direction: column; gap: 4px; background: var(--white); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 12.5px; color: var(--gray-4); }
.flegend b { font-size: 15px; color: var(--text); }
.flegend .lg { display: flex; align-items: center; gap: 8px; }
.flegend i { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--dark-blue); }
.flegend i.lg-alt { border-top: 1.5px solid var(--gray-3); }
.flow .react-flow__controls { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.flow .react-flow__minimap { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.flow-error { padding: 80px 32px; }

/* =====================================================================
   Celular de verdade: o app ocupa a tela inteira, sem moldura e sem barra falsa
   ===================================================================== */
@media (max-width: 760px) {
  :root { --sb: max(env(safe-area-inset-top, 0px), 12px); --safe-b: env(safe-area-inset-bottom, 0px); }
  html, body { height: 100%; overflow: hidden; background: var(--bg); }
  .stage { display: block; height: 100dvh; }
  .panel, .toolbar, .caption, .gallery, .flow { display: none !important; }
  .viewer { height: 100dvh; overflow: hidden; }
  .single { height: 100%; display: block; }
  .phone-fit { width: 100% !important; height: 100% !important; }
  .phone-fit > .phone { position: static; transform: none !important; width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); }
  .single .screen { border-radius: 0; }
  .single .island { display: none; }
  .single .statusbar > span { display: none; }
  .single .statusbar { padding: 0; }

  /* Seletor de telas do protótipo: botão discreto que abre a lista nativa do sistema */
  .proto-fab {
    display: grid; place-items: center; position: fixed; z-index: 20;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 28px; height: 44px; border-radius: 12px 0 0 12px;
    background: rgba(51, 51, 51, .4); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .proto-fab select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; }
}
