/* =========================================================
   Animação "Sem Naya x Com Naya" (topo do site)
   - Todas as classes começam com "nd-" para não colidir com as do site.
   - Usa as cores e fontes do site, definidas no :root do index.html
     (--night, --lamp, --ink, --display, --body...).
   ========================================================= */

/* ---------- Abertura do topo ---------- */
.nd-intro { position: relative; text-align: center; max-width: 1040px; margin-inline: auto; }
.hero .nd-intro h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); line-height: 1; margin-top: 0; }
@media (min-width: 960px) { .hero { padding-top: 44px; } }  /* topo mais compacto: os celulares aparecem antes */
.nd-hl { color: var(--lamp); }
.hero .nd-intro .lead { margin: 18px auto 0; max-width: 38em; }
.nd-cta { display: flex; justify-content: center; margin-top: 24px; }
.nd-cta svg { width: 18px; height: 18px; }
.nd-wrap { position: relative; margin-top: 34px; padding-bottom: 60px; }

/* ---------- Demonstração ---------- */
.nd-demo { position: relative; scroll-margin-top: calc(var(--header) + env(safe-area-inset-top, 0px) + 12px); }

/* Escolha do cenário (só no celular): instrução + botões grandes + "passando agora" */
.nd-choose { max-width: 520px; margin: 0 auto 16px; text-align: center; }
.nd-choose__ask { font-weight: 700; font-size: 1rem; color: #fff; margin: 0 auto 10px; text-align: center; }
.nd-now { text-align: center; }
.nd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nd-tab {
  min-height: 52px; border: 2px solid var(--night-line); background: var(--night-2); border-radius: 16px; padding: 8px 6px; cursor: pointer;
  font: 700 1rem/1.2 var(--body); color: #fff;
}
.nd-tab--seq { grid-column: 1 / -1; min-height: 46px; font-size: .92rem; }
.nd-tab[aria-selected="true"] { background: var(--lamp); border-color: var(--lamp); color: var(--ink); }
.nd-now { margin-top: 10px; font-size: .92rem; color: var(--muted-n); }
.nd-now b { color: var(--lamp); }
.nd-next { display: flex; width: 100%; max-width: 560px; margin: 16px auto 0; }
.nd-next[hidden] { display: none; }

.nd-scenes { display: grid; gap: 18px; }
@media (max-width: 899px) {
  .nd-demo[data-show="left"] .nd-scene--with,
  .nd-demo[data-show="right"] .nd-scene--without { display: none; }
  .nd-scenes { max-width: 560px; margin-inline: auto; }
}
@media (min-width: 900px) {
  .nd-choose, .nd-next { display: none !important; }
  .nd-scenes { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Cena ---------- */
.nd-scene {
  /* cores do WhatsApp dentro dos celulares (modo escuro no "sem Naya") */
  --p-head: #1F2C34; --p-chat: #0B141A; --p-in: #202C33; --p-out: #005C4B;
  --p-text: #E9EDEF; --p-meta: #8696A0; --p-composer: #1F2C34;
  --guest-c: #008069;     /* rótulo do hóspede */
  --guest-ring: #00A884;  /* aro do celular do hóspede */
  container-type: inline-size;
  position: relative; border-radius: 28px; padding: 18px 16px 20px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transition: background .8s ease;
}
/* Sem Naya: noite fria, mais clara que o fundo do site para os contornos aparecerem */
.nd-scene--without { background: linear-gradient(180deg, #1C2458 0%, #27316F 100%); border: 1px solid #3A448A; color: #E6E9FA; }
.nd-scene--without[data-phase="dawn"] { background: linear-gradient(180deg, #27316F 0%, #444F8E 100%); }
.nd-scene--without[data-phase="day"]  { background: linear-gradient(180deg, #333E80 0%, #5A65A0 100%); }
/* Com Naya: janela acesa, tons de lâmpada */
.nd-scene--with {
  --p-head: #008069; --p-chat: var(--wa-bg); --p-in: #FFFFFF; --p-out: var(--wa-out);
  --p-text: var(--wa-text); --p-meta: #5C6B6E; --p-composer: #FFFFFF;
  background: linear-gradient(180deg, #FFF3DF 0%, #FFE2B5 100%); color: var(--ink);
}
.nd-scene--with[data-phase="dawn"] { background: linear-gradient(180deg, #FFE9C8 0%, #F9D3A2 100%); }
.nd-scene--with[data-phase="day"]  { background: linear-gradient(180deg, #FFF8EA 0%, #FFE7BF 100%); }

.nd-scene__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 14px; }
.nd-scene__label {
  justify-self: start; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.nd-scene--without .nd-scene__label { color: #FFB1AA; background: rgba(226, 87, 76, .16); border: 1px solid rgba(226, 87, 76, .5); }
.nd-scene--with .nd-scene__label { color: #8A5610; background: rgba(244, 184, 96, .28); border: 1px solid rgba(138, 86, 16, .35); }

.nd-clock {
  font-family: var(--display); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 10cqw, 3.9rem);
}
.nd-scene--without .nd-clock { color: #fff; }
.nd-scene--with .nd-clock { color: var(--ink); }
.nd-scene.nd-is-lapse .nd-clock { animation: nd-lapse .5s ease-in-out infinite alternate; }
@keyframes nd-lapse { from { opacity: 1; } to { opacity: .55; } }

/* lua / sol decorativos */
.nd-scene__sky { justify-self: end; width: 34px; height: 34px; border-radius: 50%; transition: background .8s, box-shadow .8s; }
.nd-scene--without .nd-scene__sky { background: #F3F0FF; box-shadow: inset -9px -3px 0 0 #1C2458, 0 0 14px rgba(220, 215, 255, .4); }
.nd-scene--without[data-phase="dawn"] .nd-scene__sky { background: #F2C98B; box-shadow: 0 0 18px rgba(242, 201, 139, .5); }
.nd-scene--without[data-phase="day"] .nd-scene__sky { background: #F7DE9A; box-shadow: 0 0 22px rgba(247, 222, 154, .6); }
.nd-scene--with .nd-scene__sky { background: #DDE6F2; box-shadow: inset -9px -3px 0 0 #FFE9C8; }
.nd-scene--with[data-phase="dawn"] .nd-scene__sky,
.nd-scene--with[data-phase="day"] .nd-scene__sky { background: var(--lamp); box-shadow: 0 0 22px rgba(244, 184, 96, .7); }

/* Palco: medidas em em, escala com a largura da cena */
.nd-stage {
  font-size: min(16px, calc(100cqw / 30));
  display: flex; justify-content: center; align-items: flex-end; gap: 1.4em;
  min-height: 31.5em; padding-top: .6em;
}
.nd-device { display: flex; flex-direction: column; align-items: center; flex: none; }

/* Rótulo de quem é o celular */
.nd-role {
  display: inline-flex; align-items: center; gap: .35em; margin-bottom: .65em;
  font-size: .86em; font-weight: 800; padding: .42em 1em; border-radius: 999px; line-height: 1.2;
  box-shadow: 0 .3em .8em rgba(0, 0, 0, .22); white-space: nowrap;
}
.nd-role--guest { background: var(--guest-c); color: #fff; }
.nd-role--host { background: var(--lamp); color: var(--ink); }

/* ---- Celular (moldura realista, reto) ---- */
.nd-phone {
  --ring: var(--guest-ring);
  --glow: #4BE3A0;
  position: relative; padding: .42em; border-radius: 2.3em; flex: none;
  background: linear-gradient(145deg, #5A606B 0%, #1B1E23 30%, #2C3038 65%, #101215 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),   /* brilho da borda metálica */
    0 0 0 2.5px var(--ring),                       /* aro na cor do papel */
    0 1.4em 2.6em rgba(0, 0, 0, .35),
    0 .3em .6em rgba(0, 0, 0, .25);
}
.nd-phone::before, .nd-phone::after { /* botões laterais */
  content: ""; position: absolute; width: .24em; background: #3A3F48; border-radius: .2em;
}
.nd-phone::before { right: -.24em; top: 6.5em; height: 3.2em; }
.nd-phone::after { left: -.24em; top: 5em; height: 2.2em; box-shadow: 0 3em 0 #3A3F48; }
.nd-phone--host { --ring: var(--lamp); --glow: var(--lamp); }

.nd-phone__screen {
  position: relative; height: 100%; border-radius: 1.9em; overflow: hidden;
  display: flex; flex-direction: column; background: var(--p-chat); color: var(--p-text);
}
.nd-phone__screen::after { /* reflexo do vidro */
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 32%, rgba(255, 255, 255, 0) 33%);
}
.nd-phone__notch {
  position: absolute; top: .4em; left: 50%; width: 3.3em; height: .78em; z-index: 7;
  transform: translateX(-50%); background: #000; border-radius: 1em;
}

/* Glow: destaca o celular que acabou de receber mensagem */
.nd-phone.nd-is-glow { animation: nd-glow 3s ease-out both; }
@keyframes nd-glow {
  0%   { filter: drop-shadow(0 0 0 transparent); }
  20%  { filter: drop-shadow(0 0 1.4em var(--glow)); }
  50%  { filter: drop-shadow(0 0 .8em var(--glow)); }
  70%  { filter: drop-shadow(0 0 1.2em var(--glow)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}

/* Celular do hóspede */
.nd-phone--guest { width: 15.6em; height: 28em; }

/* Barra verde do WhatsApp */
.nd-wa-bar {
  display: flex; align-items: center; gap: .6em; padding: 1.45em .8em .6em;
  background: var(--p-head); color: #fff; flex: none; z-index: 2;
}
.nd-wa-bar--sm { padding: 1.35em .6em .5em; gap: .45em; font-size: .9em; }
.nd-avatar {
  width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #3B4A54; font-size: .95em;
}
.nd-avatar--naya { background: linear-gradient(140deg, var(--lamp), #E78F5A); color: var(--night); font-family: var(--display); font-size: 1.15em; }
.nd-wa-bar__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nd-wa-bar__who strong { font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-wa-bar__who small { font-size: .65em; opacity: .85; }

/* Conversa */
.nd-chat {
  list-style: none; margin: 0;
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .4em;
  padding: .6em .55em; overflow: hidden; font-size: .8em; line-height: 1.38;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.6em);
          mask-image: linear-gradient(to bottom, transparent 0, #000 1.6em);
}
.nd-scene--with .nd-chat { background-image: radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 14px 14px; }
.nd-b {
  flex: none; max-width: 86%; padding: .45em .6em .3em; border-radius: .7em;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15); animation: nd-pop .35s cubic-bezier(.2, .9, .3, 1.2) both;
  overflow-wrap: anywhere;
}
.nd-b--in { align-self: flex-start; background: var(--p-in); border-top-left-radius: .2em; }
.nd-b--out { align-self: flex-end; background: var(--p-out); border-top-right-radius: .2em; }
.nd-b__text { white-space: pre-line; }
.nd-b__meta { display: flex; justify-content: flex-end; align-items: center; gap: .3em; font-size: .78em; color: var(--p-meta); margin-top: .1em; }
.nd-scene--without .nd-b--out .nd-b__meta { color: #9EB5AC; }
.nd-b__name { display: block; font-size: .78em; font-weight: 700; color: #1FA855; margin-bottom: .1em; }
.nd-b__title { display: block; font-weight: 800; color: #B3261E; }
.nd-b__quote {
  display: block; margin: .35em 0 .1em; padding: .3em .5em; border-left: .22em solid #25D366;
  background: rgba(0, 0, 0, .05); border-radius: .3em; font-size: .92em; font-style: italic;
}
.nd-b--cmd .nd-b__text { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 800; }
@keyframes nd-pop { from { opacity: 0; transform: translateY(.6em) scale(.92); } to { opacity: 1; transform: none; } }

/* Tiques */
.nd-ticks svg { width: 1.35em; height: .85em; }
.nd-ticks path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nd-ticks .nd-c2 { display: none; }
.nd-ticks[data-state="delivered"] .nd-c2, .nd-ticks[data-state="read"] .nd-c2 { display: inline; }
.nd-ticks[data-state="read"] { color: var(--wa-tick); }

/* Digitando */
.nd-b--typing { display: flex; gap: .28em; padding: .65em .8em; }
.nd-b--typing i { width: .5em; height: .5em; border-radius: 50%; background: var(--p-meta); animation: nd-bounce 1s infinite ease-in-out; }
.nd-b--typing i:nth-child(2) { animation-delay: .15s; }
.nd-b--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nd-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.35em); opacity: 1; } }

/* Aguardando (sem Naya) */
.nd-wait {
  display: flex; align-items: center; gap: .45em; margin: 0 .55em .4em; padding: .35em .65em;
  font-size: .68em; font-weight: 600; color: #FFB3AC; background: rgba(255, 143, 134, .12);
  border: 1px solid rgba(255, 143, 134, .3); border-radius: 999px; align-self: flex-start; flex: none;
}
.nd-wait[hidden] { display: none; }
.nd-dots { display: inline-flex; gap: .2em; }
.nd-dots b { width: .3em; height: .3em; border-radius: 50%; background: currentColor; animation: nd-slowdot 2.4s infinite; }
.nd-dots b:nth-child(2) { animation-delay: .5s; }
.nd-dots b:nth-child(3) { animation-delay: 1s; }
@keyframes nd-slowdot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

.nd-composer {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: .5em;
  margin: 0 .5em .6em; padding: .5em .8em; border-radius: 999px; font-size: .72em;
  background: var(--p-composer); color: var(--p-meta);
}
.nd-composer i { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--wa-green); flex: none; }

/* Humor do hóspede */
.nd-mood {
  position: absolute; top: 3.6em; right: .5em; z-index: 4; width: 2.3em; height: 2.3em; display: grid; place-items: center;
  font-size: 1.1em; background: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); opacity: 0; transform: scale(.4);
  transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .3, 1.5);
}
.nd-mood.nd-is-on { opacity: 1; transform: scale(1); }

/* ---- Anfitrião ---- */
.nd-host__status {
  position: relative; display: inline-flex; align-items: center; gap: .45em; margin-bottom: .6em;
  padding: .28em .9em .28em .3em; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18); white-space: nowrap;
}
.nd-host__face { display: grid; place-items: center; width: 1.9em; height: 1.9em; font-size: 1.1em; border-radius: 50%; background: var(--lamp-soft); }
.nd-host__face.nd-is-bump { animation: nd-pop .45s both; }
.nd-host__label { font-size: .8em; font-weight: 800; }
.nd-zzz { position: absolute; right: -1.7em; top: -1.1em; display: flex; align-items: flex-end; gap: .1em; opacity: 0; transition: opacity .4s; font-weight: 800; color: #C47F1F; }
.nd-scene--without .nd-zzz { color: #C9CFF5; }
.nd-zzz.nd-is-on { opacity: 1; }
.nd-zzz b { font-size: .9em; animation: nd-float 2.6s infinite ease-in-out; }
.nd-zzz b:nth-child(2) { font-size: 1.15em; animation-delay: .5s; }
.nd-zzz b:nth-child(3) { font-size: 1.45em; animation-delay: 1s; }
@keyframes nd-float { 0%, 100% { transform: translateY(.3em); opacity: .35; } 50% { transform: translateY(-.5em); opacity: 1; } }

.nd-phone--host { width: 11.5em; height: 21em; }
.nd-phone--host .nd-phone__screen { background: #141A22; transition: background .6s ease; }
/* Três estados da tela: off (apagada) · lock (tela de bloqueio) · app (WhatsApp aberto) */
.nd-lock, .nd-app { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.nd-lock { padding: 1.8em .55em .6em; gap: .45em; }
.nd-phone--host[data-screen="lock"] .nd-lock,
.nd-phone--host[data-screen="app"] .nd-app { opacity: 1; visibility: visible; }
.nd-scene--without .nd-phone--host[data-screen="lock"] .nd-phone__screen { background: linear-gradient(170deg, #2A3A55, #121A29); }
.nd-scene--with .nd-phone--host[data-screen="lock"] .nd-phone__screen { background: linear-gradient(170deg, #F3A87A, #E6735E 55%, #8E4A6A); }
.nd-phone--host[data-screen="app"] .nd-phone__screen { background: var(--p-chat); }
.nd-lock__time { text-align: center; font-size: 2.1em; font-weight: 300; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; margin: .15em 0 .35em; }

.nd-silent {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: .66em; font-weight: 700; color: #A9B6C7; background: rgba(255, 255, 255, .08);
  padding: .4em .8em; border-radius: 999px; transition: opacity .4s;
}
.nd-phone--host:not([data-screen="off"]) .nd-silent { opacity: 0; }

.nd-chat--host { font-size: .68em; }
.nd-chat--list { justify-content: flex-start; padding: 0; gap: 0; -webkit-mask-image: none; mask-image: none; }
.nd-row {
  display: grid; grid-template-columns: 2.6em 1fr auto; gap: .6em; align-items: center;
  padding: .8em .7em; border-bottom: 1px solid rgba(255, 255, 255, .08); animation: nd-pop .35s both;
}
.nd-row .nd-avatar { width: 2.6em; height: 2.6em; }
.nd-row__main { min-width: 0; line-height: 1.3; }
.nd-row__main strong { display: block; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-row__main span { display: block; color: var(--p-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; font-size: .85em; color: var(--wa-green); font-weight: 700; }
.nd-row__badge { display: grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 999px; background: var(--wa-green); color: #0B141A; font-weight: 800; }

.nd-notifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4em; }
.nd-notif {
  display: grid; grid-template-columns: 1.5em 1fr; gap: .45em; padding: .5em .55em; border-radius: .8em;
  background: rgba(255, 255, 255, .95); color: #1A2326; font-size: .64em; line-height: 1.32;
  animation: nd-pop .4s cubic-bezier(.2, .9, .3, 1.2) both;
}
.nd-notif__icon { width: 1.5em; height: 1.5em; border-radius: .4em; background: #25D366; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9em; }
.nd-notif__top { display: flex; justify-content: space-between; gap: .4em; font-weight: 700; }
.nd-notif__top time { font-weight: 500; color: #5C6B6E; white-space: nowrap; }
.nd-notif--urgent .nd-notif__top span { color: #B3261E; }
.nd-notif p { margin-top: .1em; }

/* Legenda + resultado */
.nd-caption { min-height: 3em; margin: 1em auto .6em; max-width: 30em; text-align: center; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.nd-scene--without .nd-caption { color: #fff; }
.nd-outcome { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 8.6em; }
.nd-tag { display: inline-block; font-weight: 800; font-size: 1.05rem; padding: 7px 16px; border-radius: 999px; animation: nd-pop .5s both; }
.nd-tag[hidden], .nd-review[hidden] { display: none; }
.nd-scene--without .nd-tag { background: #FF8F86; color: #2A0B08; }
.nd-scene--with .nd-tag { background: var(--night); color: var(--lamp-soft); }
.nd-review { width: min(100%, 360px); padding: 12px 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); animation: nd-pop .5s both; text-align: left; }
.nd-review__stars { font-size: 1.25rem; letter-spacing: .08em; color: #E39B2D; }
.nd-review__stars .nd-off { color: #D5D9DB; }
.nd-review__text { font-size: .95rem; font-weight: 600; margin: 2px 0 4px; line-height: 1.4; }
.nd-review small { color: var(--muted-d); font-size: .78rem; }

/* ---------- Controles + linha do tempo ---------- */
.nd-player { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 4px 0; }
.nd-player__btns { display: flex; gap: 8px; flex: none; }
.nd-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--night-line); background: var(--night-2); color: var(--lamp);
  display: grid; place-items: center; cursor: pointer;
}
.nd-icon-btn:hover { border-color: var(--muted-n); }
#nd-play .nd-i-play { display: none; }
#nd-play[data-state="paused"] .nd-i-play { display: block; }
#nd-play[data-state="paused"] .nd-i-pause { display: none; }

.nd-timeline { position: relative; flex: 1; padding-top: 2px; }
.nd-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--lamp) var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%));
}
.nd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lamp); border: 3px solid var(--night); }
.nd-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lamp); border: 3px solid var(--night); }
.nd-range::-moz-range-track { background: transparent; }
.nd-marks { position: relative; height: 42px; margin-top: 8px; }
.nd-mark { position: absolute; transform: translateX(-50%); border: 0; background: none; padding: 2px 4px; font: 600 .7rem/1.2 var(--body); color: var(--muted-n); text-align: center; white-space: nowrap; cursor: pointer; }
.nd-mark::before { content: ""; display: block; width: 8px; height: 8px; margin: -12px auto 4px; border-radius: 50%; background: var(--night); border: 2px solid var(--muted-n); transition: background .2s, border-color .2s; }
.nd-mark.nd-is-passed::before { background: var(--lamp); border-color: var(--lamp); }
.nd-mark.nd-is-passed { color: var(--lamp-soft); }
.nd-mark:nth-child(even) span { display: block; margin-top: 16px; }  /* alterna a altura dos rótulos para não encostarem */
.nd-mark:first-child { transform: translateX(-12%); }
.nd-mark:last-child { transform: translateX(-88%); }
@media (max-width: 719px) {
  .nd-mark { font-size: 0; }
  .nd-mark span { display: none; }
}

/* ---------- Resumo final ---------- */
.nd-summary { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s ease; }
.nd-summary.nd-is-on { grid-template-rows: 1fr; }
.nd-summary__in { overflow: hidden; min-height: 0; text-align: center; }
.nd-summary.nd-is-on .nd-summary__in { padding: 18px 0 4px; }
.nd-summary__title { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; margin: 8px 0 20px; }
.nd-summary__grid { display: grid; gap: 14px; margin: 0 auto; max-width: 760px; }
@media (min-width: 640px) { .nd-summary__grid { grid-template-columns: 1fr 1fr; } }
.nd-sum { border-radius: 20px; padding: 20px 22px; text-align: left; }
.nd-sum h3 { font-size: 1.05rem; margin-bottom: 8px; }
.nd-sum ul { list-style: none; margin: 0; padding: 0; }
.nd-sum li { padding: 5px 0 5px 28px; position: relative; font-weight: 600; }
.nd-sum li::before { position: absolute; left: 0; top: 5px; font-weight: 800; }
.nd-sum--without { background: var(--night-2); border: 1px solid var(--night-line); color: #fff; }
.nd-sum--without h3 { color: #FF8F86; }
.nd-sum--without li::before { content: "✕"; color: #FF8F86; }
.nd-sum--with { background: var(--lamp-soft); color: var(--ink); }
.nd-sum--with h3 { color: #8A5610; }
.nd-sum--with li::before { content: "✓"; color: #8A5610; }
html:not(.js) .nd-summary { grid-template-rows: 1fr; }
.nd-noscript { text-align: center; padding: 16px; color: var(--muted-n); }

/* ---------- Utilidades ---------- */
.nd-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Elementos criados durante um "seek" nascem sem animação */
.nd-no-anim { animation: none !important; }
.nd-is-instant, .nd-is-instant * { transition: none !important; }

/* ---------- Celular ----------
   Os dois aparelhos continuam lado a lado (menores), com a letra das conversas um pouco maior.
   Fica no fim do arquivo de propósito, para valer por cima das regras gerais acima. */
@container (max-width: 479px) {
  .nd-stage { font-size: calc(100cqw / 26.6); gap: .8em; min-height: 30.5em; }
  .nd-chat { font-size: .92em; }
  .nd-chat--host { font-size: .8em; }
  .nd-notif { font-size: .76em; }
  .nd-role { font-size: .95em; padding: .42em .8em; }
  .nd-wa-bar__who strong { font-size: .9em; }
  .nd-silent { font-size: .8em; }
  .nd-device--host { width: 10em; }
  .nd-phone--host { width: 10em; height: 20em; }
  .nd-host__status { white-space: normal; max-width: 10em; line-height: 1.15; padding-right: .7em; }
  .nd-host__label { font-size: .85em; }
  .nd-zzz { right: -.6em; }
}

/* Segurança para navegadores antigos que não entendem "@container":
   mesma regra de celular, calculada pela largura da tela. */
@supports not (container-type: inline-size) {
  .nd-stage { font-size: min(16px, calc((100vw - 68px) / 30)); }
  @media (max-width: 899px) {
    .nd-stage { font-size: min(16px, calc((100vw - 68px) / 26.6)); gap: .8em; min-height: 30.5em; }
    .nd-device--host { width: 10em; }
    .nd-phone--host { width: 10em; height: 20em; }
    .nd-host__status { white-space: normal; max-width: 10em; line-height: 1.15; padding-right: .7em; }
  }
  .nd-clock { font-size: clamp(2.4rem, 9vw, 3.9rem); }
}
