/* ═══════════════════════════════════════════════════════════════════════
   LANDING — A PROVA
   ───────────────────────────────────────────────────────────────────────
   Quatro blocos novos, numa folha à parte: a landing.css tem 3139 linhas e
   mexer-lhe para acrescentar é a maneira mais rápida de partir o que já
   converte. Aqui só há classes com prefixo próprio (lp-), e nada redefine
   nada do que já existe.

   Usa os tokens da landing (--bg, --bone, --acc, --disp, --mono…), por isso
   herda a identidade sem repetir uma única cor. Dentro de .sec-bone os
   tokens invertem-se sozinhos, como no resto da página.
   ═══════════════════════════════════════════════════════════════════════ */

/* As superfícies claras (.sec-bone) já invertem os tokens na landing.css;
   estas variáveis seguem-nas para os blocos novos não precisarem de saber
   em que fundo estão. */
.lp { --lp-txt: var(--txt); --lp-soft: var(--txt-soft); --lp-faint: var(--txt-faint);
      --lp-hair: var(--hair); --lp-card: var(--bg-2); }
.sec-bone .lp, .lp.sec-bone { --lp-txt: var(--ink); --lp-soft: var(--ink-soft);
      --lp-faint: var(--ink-faint); --lp-hair: var(--hair-ink); --lp-card: rgba(255,255,255,.6); }

/* ── 1 · DEMO PERSONALIZADA ─────────────────────────────────────────── */
.lp-in { flex: 1 1 260px; min-width: 0; appearance: none; background: transparent;
  border: 1px solid var(--lp-hair); border-bottom-width: 2px; border-radius: 0;
  padding: 16px 4px; font-family: var(--disp); font-size: clamp(20px, 3.4vw, 28px);
  color: var(--lp-txt); outline: none; transition: border-color .25s var(--ease); }
.lp-in::placeholder { color: var(--lp-faint); }
.lp-in:focus { border-bottom-color: var(--acc); }
.lp-bt { flex: 0 0 auto; appearance: none; cursor: pointer; border: 1px solid var(--acc);
  background: var(--acc); color: var(--acc-ink); font-family: var(--body);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; padding: 0 26px;
  min-height: 60px; border-radius: 0; transition: transform .2s var(--ease), opacity .2s; }
.lp-bt:hover { transform: translateY(-2px); }
.lp-bt:active { transform: translateY(0); }
.lp-bt[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.lp-nota { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--lp-faint); margin: 14px 0 0; }
.lp-erro { color: var(--err); }

/* ── 2 · A CONTA DO PAPEL ───────────────────────────────────────────── */
.lp-conta { display: grid; gap: 34px; margin-top: 46px;
  grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .lp-conta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.lp-ctrl { display: grid; gap: 26px; }
.lp-lin { display: grid; gap: 10px; }
.lp-lin-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-lin-l { font-size: 14.5px; color: var(--lp-soft); }
.lp-lin-v { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--lp-txt);
  font-variant-numeric: tabular-nums; }
.lp-rng { -webkit-appearance: none; appearance: none; width: 100%; height: 2px;
  background: var(--lp-hair); outline: none; margin: 0; }
.lp-rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--acc); cursor: grab; border: 0; }
.lp-rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%;
  background: var(--acc); cursor: grab; border: 0; }
.lp-rng:active::-webkit-slider-thumb { cursor: grabbing; }

.lp-res { border: 1px solid var(--lp-hair); padding: 32px 28px; }
.lp-res-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lp-faint); margin: 0; }
.lp-res-n { font-family: var(--disp); font-size: clamp(42px, 8vw, 68px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1; margin: 10px 0 6px; color: var(--lp-txt);
  font-variant-numeric: tabular-nums; }
.lp-res-s { font-size: 14px; line-height: 1.6; color: var(--lp-soft); margin: 0; }
.lp-res-hr { height: 1px; background: var(--lp-hair); margin: 24px 0; border: 0; }
.lp-res-lin { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; font-size: 13.5px; color: var(--lp-soft); margin-bottom: 9px; }
.lp-res-lin b { font-family: var(--mono); font-weight: 700; color: var(--lp-txt);
  font-variant-numeric: tabular-nums; }
.lp-res-av { font-size: 12px; line-height: 1.6; color: var(--lp-faint); margin: 20px 0 0; }

/* ── 3 · PAPEL · PDF · NEXO ─────────────────────────────────────────── */
.lp-tab-wrap { margin-top: 46px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lp-tab { width: 100%; min-width: 580px; border-collapse: collapse; }
.lp-tab th, .lp-tab td { text-align: left; padding: 17px 16px; vertical-align: top;
  border-bottom: 1px solid var(--lp-hair); }
.lp-tab thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lp-faint); font-weight: 400;
  border-bottom-color: var(--lp-txt); }
.lp-tab thead th:last-child { color: var(--lp-txt); }
.lp-tab tbody th { font-size: 14.5px; font-weight: 600; color: var(--lp-txt); width: 31%; }
.lp-tab td { font-size: 13.5px; color: var(--lp-soft); line-height: 1.55; }
.lp-tab td:last-child { color: var(--lp-txt); background: var(--lp-card); }
.lp-tab tbody tr:last-child th, .lp-tab tbody tr:last-child td { border-bottom: 0; }
.lp-tab-nota { font-size: 12.5px; color: var(--lp-faint); margin: 16px 0 0; line-height: 1.6; }

/* ── 4 · SEM REDE ───────────────────────────────────────────────────── */
.lp-rede { display: grid; gap: 30px; margin-top: 44px; align-items: center;
  grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .lp-rede { grid-template-columns: 1fr 1fr; gap: 60px; } }
.lp-rede-p { font-size: clamp(15px, 2vw, 17px); line-height: 1.7; color: var(--lp-soft); margin: 0 0 18px; }
.lp-rede-p strong { color: var(--lp-txt); font-weight: 600; }
.lp-barras { display: grid; gap: 1px; background: var(--lp-hair);
  border: 1px solid var(--lp-hair); }
.lp-barra { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 18px 20px; background: var(--bg); }
.sec-bone .lp-barra { background: var(--bone-card); }
.lp-barra-l { font-size: 14px; color: var(--lp-soft); }
.lp-barra-v { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lp-barra--sim .lp-barra-v { color: var(--ok); }
.lp-barra--nao .lp-barra-v { color: var(--err); }

@media (prefers-reduced-motion: reduce) {
  .lp-bt { transition: none; }
}

/* ── DEMO PERSONALIZADA ─────────────────────────────────────────────────
   A landing é monocromática de propósito (ver o cabeçalho do landing.css).
   ESTA superfície — e só ela — abre uma excepção com nome e limites: pinho,
   papel, terracota e açafrão. Não é decoração: é a única parte da página
   onde se mostra COMIDA, e uma carta de restaurante a preto e branco
   parece uma factura. A excepção acaba no fim desta secção e da janela —
   os tokens vivem nos dois selectores abaixo e em mais lado nenhum, por
   isso nada daqui escorre para o resto do site.

   As animações obedecem todas a `prefers-reduced-motion` no fim do
   ficheiro, e nenhuma atrasa a acção: a carta abre no primeiro clique,
   não no fim da animação.
   ───────────────────────────────────────────────────────────────────── */
.lp-demo,
.lp-demo-dialog {
  --demo-pine:       #11322B;
  --demo-pine-2:     #194137;
  --demo-pine-deep:  #06201A;
  --demo-paper:      #F7F3EA;
  --demo-paper-2:    #EDE4D3;
  --demo-ink:        #15271F;
  --demo-terra:      #E07A52;
  --demo-terra-soft: #F0A787;
  --demo-terra-deep: #B4512F;
  --demo-saffron:    #E9B765;
  --demo-sage:       #9CB6A0;
  --demo-ease:       cubic-bezier(.23,1,.32,1);
}

.lp-demo {
  --lp-txt: var(--demo-paper);
  --lp-soft: rgba(247,243,234,.78);
  --lp-faint: rgba(247,243,234,.54);
  --lp-hair: rgba(247,243,234,.17);
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 8vw, 7.5rem);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
  color: var(--demo-paper);
  background:
    radial-gradient(ellipse at 76% 42%, var(--demo-pine-2) 0%, transparent 58%),
    linear-gradient(168deg, var(--demo-pine) 0%, var(--demo-pine-deep) 100%);
  isolation: isolate;
}
/* Luz quente vinda da direita (onde está a carta) e vinheta nos cantos —
   o olho vai ao cartão antes de ler o título. */
.lp-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 78% 44%, rgba(233,183,101,.13), transparent 68%),
    radial-gradient(ellipse 45% 50% at 4% 96%, rgba(224,122,82,.14), transparent 62%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 42%, rgba(4,16,13,.42) 100%);
}
/* Grão de papel. Sem ele o fundo é um degradé de template; com ele tem
   textura de carta impressa, que é exactamente o que se vende. */
.lp-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(rgba(247,243,234,.42) .55px, transparent .55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(115deg, transparent 26%, #000 100%);
}
.lp-demo > .container { position: relative; z-index: 1; }
.lp-demo .ghost-n {
  color: transparent;
  -webkit-text-stroke-color: rgba(247,243,234,.08);
}
.lp-demo ::selection { background: var(--demo-terra); color: #fff; }
.lp-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2.75rem, 7vw, 7.5rem);
}
.lp-demo-copy { max-width: 560px; position: relative; z-index: 2; }

.lp-demo-overline,
.lp-dialog-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--demo-paper);
}
.lp-demo-overline-rule {
  width: clamp(1.2rem, 3vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, var(--demo-saffron), rgba(247,243,234,.1));
}
.lp-demo-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--demo-saffron);
  box-shadow: 0 0 0 0 rgba(233,183,101,.5);
  animation: lp-pulse 2.4s ease-out infinite;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(233,183,101,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(233,183,101,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,183,101,0); }
}
.lp-demo h2 {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.055em;
  color: var(--demo-paper);
  text-wrap: balance;
}
.lp-demo h2 em { color: var(--demo-terra-soft); font-style: italic; }
.lp-demo-intro {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--lp-soft);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.7;
}

/* ── O campo ───────────────────────────────────────────────────────── */
.lp-demo-form { margin-top: clamp(2rem, 4vw, 3rem); }
.lp-demo-form > label,
.lp-dialog-form > label {
  display: block;
  margin-bottom: .65rem;
  color: var(--demo-paper);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .025em;
  transition: color 200ms var(--demo-ease), letter-spacing 200ms var(--demo-ease);
}
.lp-demo-form:focus-within > label { color: var(--demo-saffron); letter-spacing: .07em; }
.lp-dialog-form:focus-within > label { color: var(--demo-terra-deep); letter-spacing: .07em; }
.lp-demo-field { display: flex; align-items: stretch; gap: .65rem; }
.lp-demo-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.lp-demo-field .lp-in {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: .85rem 3.6rem .85rem 1rem;
  border: 1px solid rgba(247,243,234,.34);
  border-radius: 2px;
  background: rgba(6,32,26,.32);
  color: var(--demo-paper);
  font-family: var(--body);
  font-size: 1rem;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 220ms var(--demo-ease);
}
.lp-demo-field .lp-in::placeholder { color: rgba(247,243,234,.5); }
.lp-demo-field .lp-in:hover { border-color: rgba(247,243,234,.6); }
.lp-demo-field .lp-in:focus {
  border-color: var(--demo-saffron);
  outline: 0;
  background: rgba(6,32,26,.52);
  box-shadow: 0 0 0 3px rgba(233,183,101,.18), 0 10px 30px rgba(4,16,13,.3);
}
.lp-demo-field .lp-in[aria-invalid="true"],
.lp-dialog-field input[aria-invalid="true"] { border-color: #C9583F; }

/* Contador em anel: diz quanto espaço resta sem gastar uma linha de texto
   e sem gritar — só aparece quando já se escreveu alguma coisa. */
.lp-ring {
  position: absolute;
  top: 50%;
  right: .85rem;
  transform: translateY(-50%) scale(.82);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--demo-ease), transform 220ms var(--demo-ease);
}
.lp-demo-input-wrap.has-value .lp-ring { opacity: 1; transform: translateY(-50%) scale(1); }
.lp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke-width: 2; }
.lp-ring-bg { stroke: rgba(247,243,234,.16); }
.lp-ring-fg {
  stroke: var(--demo-saffron);
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: calc(97.4 - 97.4 * var(--lp-fill, 0));
  transition: stroke-dashoffset 240ms var(--demo-ease), stroke 200ms ease-out;
}
.lp-demo-input-wrap.is-full .lp-ring-fg { stroke: var(--demo-terra); }
.lp-ring b {
  position: relative;
  color: var(--lp-faint);
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 600;
  font-style: normal;
}

/* ── Os botões de acção ────────────────────────────────────────────── */
.lp-demo-field .lp-bt,
.lp-dialog-submit {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 58px;
  border: 1px solid var(--demo-terra-deep);
  border-radius: 2px;
  padding: 0 1.15rem;
  background: var(--demo-terra-deep);
  color: #fff;
  font-family: var(--body);
  font-size: .91rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 190ms var(--demo-ease), background-color 190ms ease-out,
             border-color 190ms ease-out, opacity 190ms ease-out, box-shadow 190ms ease-out;
}
/* Brilho que varre o botão ao passar o rato. Dura 520ms e não se repete:
   chama a atenção uma vez, não pisca a página inteira. */
.lp-demo-field .lp-bt::before,
.lp-dialog-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.26), transparent);
  pointer-events: none;
}
.lp-demo-field .lp-bt:not(:disabled):hover::before,
.lp-dialog-submit:not(:disabled):hover::before { animation: lp-sheen 520ms var(--demo-ease); }
@keyframes lp-sheen { to { left: 140%; } }
.lp-demo-field .lp-bt svg,
.lp-dialog-submit svg { flex: 0 0 auto; transition: transform 190ms var(--demo-ease), opacity 160ms ease-out; }
.lp-demo-field .lp-bt:not(:disabled):hover,
.lp-dialog-submit:not(:disabled):hover {
  transform: translateY(-2px);
  background: #9F4629;
  border-color: #9F4629;
  box-shadow: 0 10px 26px rgba(6,20,16,.3);
}
.lp-demo-field .lp-bt:not(:disabled):hover svg,
.lp-dialog-submit:not(:disabled):hover svg { transform: translateX(3px); }
.lp-demo-field .lp-bt:not(:disabled):active,
.lp-dialog-submit:not(:disabled):active { transform: translateY(0) scale(.985); }
.lp-demo-field .lp-bt:disabled,
.lp-dialog-submit:disabled { opacity: .46; cursor: not-allowed; }
.lp-demo-field .lp-bt:focus-visible { outline: 2px solid var(--demo-saffron); outline-offset: 3px; }
.lp-dialog-submit:focus-visible,
.lp-dialog-close:focus-visible,
.lp-chip:focus-visible { outline: 2px solid var(--demo-pine); outline-offset: 3px; }

/* Estado "a abrir": o botão passa a roda + barra de progresso. Entre o
   clique e a aba nova passam uns milissegundos, mas num telemóvel lento
   passa mais — e sem isto a pessoa carrega outra vez. */
.lp-bt-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
}
.lp-bt-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--demo-saffron);
  pointer-events: none;
}
.is-loading .lp-bt-spinner,
.lp-bt.is-loading .lp-bt-spinner { display: block; animation: lp-spin .7s linear infinite; }
.is-loading svg { opacity: 0; transform: scale(.8); }
.is-loading .lp-bt-progress { animation: lp-progress 900ms var(--demo-ease) forwards; }
.is-loading { pointer-events: none; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-progress { to { transform: scaleX(1); } }
.lp-demo-field .lp-bt.is-done,
.lp-dialog-submit.is-done { background: #2F6B4D; border-color: #2F6B4D; }

.lp-demo .lp-nota {
  min-height: 1.5em;
  margin-top: .8rem;
  color: var(--lp-faint);
  font-size: .67rem;
  letter-spacing: .1em;
  transition: color 180ms ease-out;
}
.lp-demo .lp-nota.lp-erro { color: #FFCBB8; }
.lp-demo .lp-nota.is-success { color: var(--demo-saffron); }
.lp-demo-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin-top: 1.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247,243,234,.16);
  color: rgba(247,243,234,.58);
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-demo-assurance li { display: inline-flex; gap: .45rem; align-items: baseline; }
.lp-demo-assurance i { color: var(--demo-saffron); font-style: normal; }
.lp-demo-assurance b { color: var(--demo-paper); font-weight: 500; }
.lp-field-nudge { animation: lp-field-nudge 200ms ease-out; }
@keyframes lp-field-nudge {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── A carta em pré-visualização ───────────────────────────────────── */
.lp-demo-showcase {
  min-width: 0;
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1100px;
}
.lp-demo-halo {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(247,243,234,.15);
  border-radius: 50%;
  pointer-events: none;
}
.lp-demo-halo--one {
  width: min(77%, 390px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 28px rgba(247,243,234,.024), 0 0 0 58px rgba(247,243,234,.016);
}
.lp-demo-halo--two {
  width: min(92%, 470px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border-style: dashed;
  border-color: rgba(233,183,101,.26);
  animation: lp-halo-spin 46s linear infinite;
}
@keyframes lp-halo-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.lp-menu-preview {
  width: min(100%, 418px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(17,50,43,.14);
  background: linear-gradient(170deg, #FFFCF5 0%, var(--demo-paper) 46%, var(--demo-paper-2) 100%);
  color: var(--demo-pine);
  box-shadow: 0 28px 84px rgba(3,16,12,.38), 0 4px 14px rgba(3,16,12,.16);
  /* O rato inclina o cartão (as variáveis vêm do JS). Sem rato ou sem JS
     fica no repouso de sempre: -2deg, como um papel pousado na mesa. */
  transform:
    rotate(var(--lp-rot, -2deg))
    rotateX(var(--lp-tilt-x, 0deg))
    rotateY(var(--lp-tilt-y, 0deg))
    translateY(var(--lp-lift, 0px));
  transform-style: preserve-3d;
  transition: transform 300ms var(--demo-ease), box-shadow 300ms ease-out;
  will-change: transform;
}
.lp-demo-showcase:hover .lp-menu-preview {
  --lp-rot: 0deg;
  --lp-lift: -5px;
  box-shadow: 0 38px 96px rgba(3,16,12,.44), 0 10px 26px rgba(3,16,12,.18);
}
.lp-menu-preview.is-tilting { transition: box-shadow 300ms ease-out; }
.lp-menu-preview::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.5rem;
  width: 3.2rem;
  height: 4px;
  background: var(--demo-terra);
}
/* Varrimento de luz quando o nome muda — confirma a escrita no cartão, e
   não só no campo. */
.lp-preview-sheen {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.72), transparent);
  opacity: 0;
}
.is-flash .lp-preview-sheen { animation: lp-card-sheen 620ms var(--demo-ease); }
@keyframes lp-card-sheen {
  0%   { left: -60%; opacity: 0; }
  18%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.lp-menu-preview-head,
.lp-menu-preview-meta,
.lp-menu-category,
.lp-menu-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.lp-menu-preview-head { margin-bottom: 2rem; }
.lp-menu-monogram {
  /* flex e não grid: com `display:grid` o "N" e o <span> do ponto viram
     dois itens de grelha e o ponto cai para baixo do N. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--demo-pine);
  color: var(--demo-paper);
  font-family: var(--disp);
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(6,24,19,.2);
}
.lp-menu-monogram span { color: var(--demo-terra); }
.lp-menu-languages,
.lp-menu-preview-kicker,
.lp-menu-preview-meta,
.lp-menu-category,
.lp-menu-preview-foot {
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .12em;
}

/* ── A tira de línguas ──────────────────────────────────────────────
   Roda uma lista aberta em vez de mostrar um número. É a forma mais
   honesta de dizer "as que precisar" num espaço de dois centímetros. */
.lp-menu-languages,
.lp-dialog-card-langs { display: inline-flex; align-items: center; gap: .45rem; color: #5A6B60; }
.lp-lang-window {
  display: block;
  height: 1.05em;
  overflow: hidden;
  min-width: 7.2ch;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
}
.lp-dialog-card-langs .lp-lang-window { min-width: 3.4ch; }
.lp-lang-track {
  display: block;
  animation: lp-lang-roll 18s steps(1, end) infinite;
}
.lp-lang-track b { display: block; height: 1.05em; line-height: 1.05em; font-weight: 600; white-space: nowrap; }
@keyframes lp-lang-roll {
  0%,8%     { transform: translateY(0); }
  10%,18%   { transform: translateY(-1.05em); }
  20%,28%   { transform: translateY(-2.1em); }
  30%,38%   { transform: translateY(-3.15em); }
  40%,48%   { transform: translateY(-4.2em); }
  50%,58%   { transform: translateY(-5.25em); }
  60%,68%   { transform: translateY(-6.3em); }
  70%,78%   { transform: translateY(-7.35em); }
  80%,88%   { transform: translateY(-8.4em); }
  90%,100%  { transform: translateY(-9.45em); }
}
.lp-menu-languages > i,
.lp-dialog-card-langs > i { width: 2px; height: 2px; flex: 0 0 2px; border-radius: 50%; background: var(--demo-terra); }
.lp-lang-any {
  padding: .14em .42em;
  border: 1px solid rgba(224,122,82,.4);
  border-radius: 999px;
  color: var(--demo-terra-deep);
  font-size: .9em;
  letter-spacing: .1em;
}

.lp-menu-preview-kicker { color: #5E6B60; }
.lp-menu-preview-kicker span { color: var(--demo-terra); padding: 0 .25rem; }
.lp-menu-preview-name {
  max-width: 12ch;
  margin: .45rem 0 .8rem;
  color: var(--demo-pine);
  font-family: var(--disp);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  overflow-wrap: anywhere;
}
/* Enquanto o campo está em foco, o nome do cartão ganha um cursor a piscar
   — o cartão deixa de ser uma imagem e passa a ser o sítio onde se escreve. */
.lp-menu-preview-name::after,
.lp-dialog-card-name::after {
  content: "";
  display: inline-block;
  width: .055em;
  height: .82em;
  margin-left: .07em;
  vertical-align: -.03em;
  background: var(--demo-terra);
  opacity: 0;
}
.is-typing .lp-menu-preview-name::after,
.is-typing .lp-dialog-card-name::after { opacity: 1; animation: lp-caret 1s steps(2, end) infinite; }
@keyframes lp-caret { 50% { opacity: 0; } }
.lp-menu-preview-name.is-changing,
.lp-dialog-card-name.is-changing { animation: lp-name-update 260ms var(--demo-ease) both; }
@keyframes lp-name-update {
  from { opacity: .35; transform: translateY(5px); filter: blur(1.5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.lp-menu-preview-meta { color: #5E6B60; font-size: .49rem; }
.lp-menu-open { display: inline-flex; align-items: center; gap: .35rem; color: #3F6E52; }
.lp-menu-open i {
  width: 5px; height: 5px; border-radius: 50%; background: #5E9A6B;
  box-shadow: 0 0 0 0 rgba(94,154,107,.5);
  animation: lp-open-pulse 2.6s ease-out infinite;
}
@keyframes lp-open-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94,154,107,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(94,154,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,154,107,0); }
}
.lp-menu-preview-divider { height: 1px; margin: 1.1rem 0; background: linear-gradient(90deg, rgba(17,50,43,.24), rgba(17,50,43,.06)); }
.lp-menu-category { margin-bottom: .75rem; color: #5E6B60; font-size: .51rem; }
.lp-menu-category span:first-child { color: var(--demo-pine); }

.lp-menu-dish {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .68rem 0;
  border-top: 1px solid rgba(17,50,43,.1);
  transition: background-color 200ms ease-out;
}
/* Os pratos entram em cascata quando a carta chega ao ecrã. A classe vem
   do JS, uma vez só. A regra está fechada dentro de `no-preference` de
   propósito: o estado inicial desta animação é opacidade 0, e num sítio
   onde as animações não corram isso deixava a carta sem pratos — que é o
   pior defeito possível numa secção que existe para mostrar uma carta. */
@media (prefers-reduced-motion: no-preference) {
  .lp-menu-preview.is-live .lp-menu-dish { animation: lp-dish-in 520ms var(--demo-ease) both; }
  .lp-menu-preview.is-live .lp-menu-dish:nth-of-type(1) { animation-delay: 120ms; }
  .lp-menu-preview.is-live .lp-menu-dish:nth-of-type(2) { animation-delay: 220ms; }
  .lp-menu-preview.is-live .lp-menu-dish:nth-of-type(3) { animation-delay: 320ms; }
}
@keyframes lp-dish-in {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-dish-art {
  width: 46px;
  height: 46px;
  position: relative;
  overflow: hidden;
  border: 4px solid #FFFDF8;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(17,50,43,.16);
  transition: transform 260ms var(--demo-ease);
}
.lp-menu-dish:hover .lp-dish-art { transform: scale(1.08) rotate(-5deg); }
.lp-dish-art::before,
.lp-dish-art::after { content: ""; position: absolute; border-radius: 50%; }
/* As três miniaturas são pratos que EXISTEM na carta de demonstração
   (menu/demo-casa): waffle, frozen e iced latte — na paleta da carta
   (porcelana, cacau, ouro, e a cor de fruta só no produto). Uma
   pré-visualização com tacos a abrir uma carta de gelados era a landing a
   prometer outra casa; uma a cinzento a abrir uma carta a cores, também. */
.lp-dish-art--one {          /* waffle: a grelha da massa e um fio de chocolate */
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(148, 103, 60, .42) 6px 8px),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(148, 103, 60, .42) 6px 8px),
    radial-gradient(circle at 40% 35%, #EBD2A8, #D6A86E 70%);
}
.lp-dish-art--one::before { width: 26px; height: 5px; top: 17px; left: 6px; background: #4A3127; border-radius: 3px; transform: rotate(-18deg); }
.lp-dish-art--one::after { width: 5px; height: 5px; right: 8px; top: 9px; background: #4A3127; }
.lp-dish-art--two {          /* frozen: espiral de iogurte, calda de morango, a taça de porcelana rosé */
  background: radial-gradient(circle at 50% 46%, #FFFCF7 0 22%, #EEDDD0 23% 31%, #FBF4EC 32% 44%, #C46E72 45% 55%, #FBF4EC 56% 66%, #EBD3C8 67%);
}
.lp-dish-art--two::before { width: 9px; height: 9px; top: 5px; left: 15px; background: #C46E72; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .12); }
.lp-dish-art--two::after { width: 6px; height: 4px; right: 7px; bottom: 12px; background: #EDD9A2; border-radius: 3px; }
.lp-dish-art--three {        /* iced latte: café por cima, leite por baixo, gelo */
  background: linear-gradient(180deg, #B08259 0 38%, #C29B74 39% 56%, #F2E6D6 57% 100%);
}
.lp-dish-art--three::before { width: 10px; height: 10px; top: 8px; left: 9px; background: rgba(255, 255, 255, .85); border-radius: 3px; transform: rotate(12deg); }
.lp-dish-art--three::after { width: 8px; height: 8px; top: 12px; right: 9px; background: rgba(255, 255, 255, .75); border-radius: 3px; transform: rotate(-10deg); }
.lp-dish-text { display: grid; gap: .2rem; min-width: 0; }
.lp-dish-text b { overflow: hidden; color: #1C352B; font-family: var(--disp); font-size: .94rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp-dish-text small { overflow: hidden; color: #5C665C; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.lp-dish-price { color: #3C5F49; font-family: var(--mono); font-size: .62rem; white-space: nowrap; }
/* A etiqueta do prato em destaque é o upsell da carta a trabalhar — é
   isso que o dono está aqui para ver. */
.lp-menu-dish--star { background: linear-gradient(90deg, rgba(233,183,101,.16), transparent 72%); }
.lp-dish-tag {
  position: absolute;
  top: -.42rem;
  left: 3.6rem;
  padding: .12rem .36rem;
  background: var(--demo-terra);
  color: #fff;
  font-family: var(--mono);
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.lp-menu-preview-foot {
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(17,50,43,.16);
  color: #5E6B60;
  font-size: .48rem;
}
.lp-menu-preview-foot span:last-child { color: var(--demo-pine); }
.lp-menu-preview-foot b { margin-left: .3rem; color: var(--demo-terra); font-size: .8rem; display: inline-block; animation: lp-tap 3.4s var(--demo-ease) infinite; }
@keyframes lp-tap {
  0%, 72%, 100% { transform: translate(0, 0); }
  78%  { transform: translate(2px, -3px); }
  86%  { transform: translate(0, 0); }
}

.lp-demo-note {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(247,243,234,.17);
  background: rgba(17,50,43,.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--demo-paper);
  box-shadow: 0 12px 30px rgba(3,16,12,.26);
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: transform 300ms var(--demo-ease);
}
/* As duas etiquetas flutuam POR CIMA do cartão: têm de ficar fora da
   zona onde há texto a ler, ou tapam a tira de línguas e o rodapé — que
   são precisamente as duas coisas que elas anunciam. */
.lp-demo-note--top { top: 1%; right: -2%; transform: rotate(2deg); animation: lp-float-a 7s ease-in-out infinite; }
.lp-demo-note--bottom { bottom: 2%; left: -2%; transform: rotate(-2deg); animation: lp-float-b 8.5s ease-in-out infinite; }
@keyframes lp-float-a {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-7px); }
}
@keyframes lp-float-b {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(6px); }
}
.lp-demo-note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--demo-terra); box-shadow: 0 0 0 3px rgba(224,122,82,.18); }
.lp-demo-note-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  background: var(--demo-saffron); color: var(--demo-pine);
  font-size: .78rem; font-weight: 700; line-height: 1;
}

/* ── A JANELA ───────────────────────────────────────────────────────── */
.lp-demo-dialog {
  width: min(880px, calc(100% - 28px));
  max-width: none;
  max-height: min(92vh, 820px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(17,50,43,.16);
  border-radius: 3px;
  background: var(--demo-paper, #F7F3EA);
  color: var(--demo-pine, #11322B);
  box-shadow: 0 34px 110px rgba(0,0,0,.42);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity 230ms var(--demo-ease), transform 230ms var(--demo-ease), overlay 230ms allow-discrete, display 230ms allow-discrete;
}
.lp-demo-dialog[open]:not(.is-closing) { opacity: 1; transform: translateY(0) scale(1); }
.lp-demo-dialog.is-closing { opacity: 0; transform: translateY(10px) scale(.99); }
.lp-demo-dialog::backdrop {
  background: rgba(5,20,16,0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color 230ms ease-out, backdrop-filter 230ms ease-out;
}
.lp-demo-dialog[open]::backdrop { background: rgba(5,20,16,.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-demo-dialog.is-closing::backdrop { background: rgba(5,20,16,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
@starting-style {
  .lp-demo-dialog[open]:not(.is-closing) { opacity: 0; transform: translateY(14px) scale(.985); }
  .lp-demo-dialog[open]::backdrop { background: rgba(5,20,16,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
}
.lp-demo-dialog ::selection { background: var(--demo-terra, #E07A52); color: #fff; }
.lp-demo-dialog-inner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.lp-dialog-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(1.4rem, 3.5vw, 2.1rem); }
.lp-dialog-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--demo-pine); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.lp-dialog-brand > span:last-child i { color: #627167; font-size: .54rem; font-style: normal; font-weight: 500; }
.lp-dialog-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--demo-pine); color: var(--demo-paper); font-family: var(--disp); font-size: 1.15rem; }
.lp-dialog-mark span { color: var(--demo-terra); }
.lp-dialog-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(17,50,43,.19); border-radius: 50%; background: transparent; color: var(--demo-pine); cursor: pointer; transition: color 180ms ease-out, background-color 180ms ease-out, transform 220ms var(--demo-ease); }
.lp-dialog-close:hover { background: var(--demo-pine); color: var(--demo-paper); transform: rotate(90deg); }

/* `display:grid` vence o `display:none` que o atributo [hidden] traz do
   browser — sem esta linha a vista do nome fica por baixo da carta. */
.lp-dialog-body[hidden] { display: none; }
.lp-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}
/* O conteúdo entra em cascata depois da janela. Rápido (≤320ms no último)
   — isto é um passo no caminho da carta, não um genérico de abertura. */
@media (prefers-reduced-motion: no-preference) {
  .lp-demo-dialog .lp-dialog-kicker,
  .lp-demo-dialog h2,
  .lp-dialog-copy,
  .lp-dialog-form,
  .lp-dialog-escape,
  .lp-dialog-aside { opacity: 0; transform: translateY(10px); }
}
.lp-demo-dialog.is-open .lp-dialog-kicker,
.lp-demo-dialog.is-open h2,
.lp-demo-dialog.is-open .lp-dialog-copy,
.lp-demo-dialog.is-open .lp-dialog-form,
.lp-demo-dialog.is-open .lp-dialog-escape,
.lp-demo-dialog.is-open .lp-dialog-aside { animation: lp-stagger 380ms var(--demo-ease) forwards; }
.lp-demo-dialog.is-open .lp-dialog-kicker { animation-delay: 40ms; }
.lp-demo-dialog.is-open h2             { animation-delay: 90ms; }
.lp-demo-dialog.is-open .lp-dialog-copy { animation-delay: 140ms; }
.lp-demo-dialog.is-open .lp-dialog-aside { animation-delay: 170ms; }
.lp-demo-dialog.is-open .lp-dialog-form { animation-delay: 210ms; }
.lp-demo-dialog.is-open .lp-dialog-escape { animation-delay: 280ms; }
@keyframes lp-stagger { to { opacity: 1; transform: translateY(0); } }

.lp-dialog-kicker { gap: .65rem; color: #52675B; font-size: .56rem; }
.lp-dialog-kicker .lp-demo-pulse { width: 6px; height: 6px; flex-basis: 6px; background: var(--demo-terra); box-shadow: 0 0 0 0 rgba(224,122,82,.45); }
.lp-demo-dialog h2 { margin: .9rem 0 .8rem; color: var(--demo-pine); font-size: clamp(2rem, 5vw, 3.1rem); line-height: .98; letter-spacing: -.055em; }
.lp-demo-dialog h2 em { color: #C25B3C; font-style: italic; }
.lp-dialog-copy { max-width: 34rem; margin: 0; color: #5F7168; font-size: .94rem; line-height: 1.65; }
.lp-dialog-form { margin-top: 1.5rem; }
.lp-dialog-form > label { color: #294B3F; }
.lp-dialog-field { position: relative; }
.lp-dialog-field input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(17,50,43,.28);
  border-radius: 2px;
  padding: .85rem 4.7rem .85rem 1rem;
  background: rgba(255,255,255,.5);
  color: var(--demo-pine);
  font: 500 1rem var(--body);
  transition: border-color 200ms ease-out, box-shadow 220ms var(--demo-ease), background-color 200ms ease-out;
}
.lp-dialog-field input::placeholder { color: #68746A; }
.lp-dialog-field input:focus { outline: 0; border-color: #3E6B57; background: #fffdf8; box-shadow: 0 0 0 3px rgba(62,107,87,.14); }
.lp-dialog-field input[aria-invalid="true"] { border-color: #B74A38; box-shadow: 0 0 0 3px rgba(183,74,56,.12); }
/* Traço que cresce do centro ao focar — a mesma ideia do campo da secção,
   escrita na cor do papel. */
.lp-dialog-underline {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--demo-terra);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms var(--demo-ease);
  pointer-events: none;
}
.lp-dialog-field:focus-within .lp-dialog-underline { transform: scaleX(1); }
.lp-dialog-length { position: absolute; top: 50%; right: .9rem; transform: translateY(-50%); color: #5E6B60; font-family: var(--mono); font-size: .58rem; letter-spacing: .05em; pointer-events: none; transition: color 180ms ease-out; }
.lp-dialog-field.is-full .lp-dialog-length { color: var(--demo-terra-deep); }

.lp-dialog-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .85rem; }
.lp-chips-label { color: #5E6B60; font-family: var(--mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; }
.lp-chip {
  padding: .34rem .62rem;
  border: 1px solid rgba(17,50,43,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  color: #35564A;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform 180ms var(--demo-ease), background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}
.lp-chip:hover { transform: translateY(-2px); background: var(--demo-pine); border-color: var(--demo-pine); color: var(--demo-paper); }
.lp-chip:active { transform: translateY(0) scale(.96); }

.lp-dialog-preview { min-height: 1.4em; margin: .85rem 0 1.1rem; color: #5F6D62; font-size: .79rem; }
.lp-dialog-preview strong { color: #294B3F; font-weight: 600; }
.lp-dialog-submit { width: 100%; min-height: 56px; justify-content: space-between; padding: 0 1.1rem 0 1.25rem; }
.lp-dialog-status { min-height: 1.35em; margin: .9rem 0 0; color: #5D6A61; font-family: var(--mono); font-size: .56rem; letter-spacing: .05em; line-height: 1.5; }
.lp-dialog-status.is-error { color: #A94331; }
.lp-dialog-status.is-success { color: #35694F; }
.lp-dialog-escape {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(17,50,43,.12);
  color: #5E6B60;
  font-size: .78rem;
}
.lp-dialog-escape a {
  color: var(--demo-terra-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180,81,47,.35);
  transition: text-decoration-color 180ms ease-out, color 180ms ease-out;
}
.lp-dialog-escape a:hover { color: #8F3D22; text-decoration-color: currentColor; }

/* ── O cartão dentro da janela ──────────────────────────────────────── */
.lp-dialog-aside { position: relative; }
.lp-dialog-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: .3rem;
  padding: 1.15rem 1.1rem 1rem;
  border: 1px solid rgba(17,50,43,.14);
  background: linear-gradient(170deg, #FFFCF5, var(--demo-paper-2));
  box-shadow: 0 16px 44px rgba(3,16,12,.16);
  transform: rotate(-1.4deg);
  transition: transform 300ms var(--demo-ease), box-shadow 300ms ease-out;
}
.lp-dialog-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 22px 54px rgba(3,16,12,.2); }
.lp-dialog-card::before { content: ""; position: absolute; top: -1px; left: 1.1rem; width: 2.4rem; height: 3px; background: var(--demo-terra); }
.lp-dialog-card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.lp-dialog-card-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--demo-pine); color: var(--demo-paper); font-family: var(--disp); font-size: .98rem; }
.lp-dialog-card-mark span { color: var(--demo-terra); }
.lp-dialog-card-langs { font-family: var(--mono); font-size: .48rem; font-weight: 600; letter-spacing: .1em; }
.lp-dialog-card-kicker { color: #5E6B60; font-family: var(--mono); font-size: .46rem; font-weight: 600; letter-spacing: .12em; }
.lp-dialog-card-name {
  color: var(--demo-pine);
  font-family: var(--disp);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.lp-dialog-card-meta { color: #5E6B60; font-family: var(--mono); font-size: .44rem; font-weight: 600; letter-spacing: .1em; }
.lp-dialog-card-rule { height: 1px; margin: .7rem 0 .45rem; background: rgba(17,50,43,.16); }
.lp-dialog-card-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: .36rem 0;
  border-top: 1px solid rgba(17,50,43,.08);
  color: #2A463A;
  font-size: .72rem;
}
.lp-dialog-card-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-dialog-card-row b { color: #3C5F49; font-family: var(--mono); font-size: .56rem; }
.lp-dialog-card-art { width: 26px; height: 26px; border-width: 2px; }
.lp-dialog-card-foot { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid rgba(17,50,43,.14); color: var(--demo-pine); font-family: var(--mono); font-size: .44rem; font-weight: 600; letter-spacing: .1em; }

/* ── O CURSOR DENTRO DA JANELA ──────────────────────────────────────────
   A landing troca o cursor do sistema por um ponto e um anel desenhados
   (`body { cursor: none }` no landing.css). A janela abre com showModal(),
   que a põe na "top layer" do browser — por cima de QUALQUER z-index. O
   ponto desenhado ficava por baixo dela e o do sistema estava desligado:
   em cima da janela não havia cursor nenhum.

   Dentro da janela volta o cursor do sistema, e o desenhado esconde-se
   enquanto ela está aberta. Não se tenta pôr o desenhado por cima: sobre o
   iframe da carta o documento-pai deixa de receber `mousemove`, e o ponto
   ficava congelado à porta do telemóvel. */
@media (hover: hover) and (pointer: fine) {
  .lp-demo-dialog,
  .lp-demo-dialog::backdrop { cursor: auto; }
  .lp-demo-dialog a,
  .lp-demo-dialog button,
  .lp-demo-dialog label { cursor: pointer; }
  .lp-demo-dialog input { cursor: text; }
  .lp-demo-dialog button:disabled { cursor: not-allowed; }
  html.lp-janela-aberta .cursor-dot,
  html.lp-janela-aberta .cursor-ring { opacity: 0 !important; }
}

/* ── RESPONSIVO ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .lp-dialog-body { grid-template-columns: 1fr; }
  /* No estreito o cartão vai para cima do formulário: é a prova, e a prova
     não se vê depois de se ter decidido. */
  .lp-dialog-aside { order: -1; max-width: 340px; }
}
@media (max-width: 900px) {
  .lp-demo-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-demo-copy { max-width: 640px; }
  .lp-demo-showcase { min-height: 470px; }
  .lp-menu-preview { width: min(78%, 430px); }
  .lp-demo-note--top { right: 5%; }
  .lp-demo-note--bottom { left: 5%; }
}
@media (max-width: 560px) {
  .lp-demo { padding-block: 4.5rem; }
  .lp-demo-overline { flex-wrap: wrap; gap: .55rem; font-size: .52rem; }
  .lp-demo h2 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .lp-demo-intro { font-size: .98rem; }
  .lp-demo-field { flex-direction: column; }
  .lp-demo-input-wrap { flex-basis: auto; }
  .lp-demo-field .lp-bt { width: 100%; justify-content: space-between; padding-inline: 1rem; }
  .lp-demo-assurance { gap: .6rem .95rem; font-size: .51rem; }
  .lp-demo-showcase {
    min-height: 0;
    margin-inline: -.4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    perspective: none;
  }
  .lp-menu-preview { width: min(100%, 390px); align-self: center; padding: 1.25rem; --lp-rot: 0deg; }
  .lp-menu-preview-head { margin-bottom: 1.5rem; }
  .lp-demo-showcase:hover .lp-menu-preview { --lp-lift: 0px; }
  .lp-demo-note { position: relative; inset: auto; align-self: flex-end; padding: .58rem .62rem; font-size: .47rem; animation: none; transform: none; }
  .lp-demo-note--top { align-self: flex-end; }
  .lp-demo-note--bottom { align-self: flex-start; }
  .lp-demo-dialog { width: calc(100% - 24px); }
  .lp-demo-dialog-inner { padding: 1.35rem; }
  .lp-dialog-topline { margin-bottom: 1.4rem; }
  .lp-demo-dialog h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lp-dialog-aside { max-width: none; }
  .lp-dialog-card { transform: none; }
  .lp-dialog-card:hover { transform: none; }
}

/* Teclado e leitores de ecrã antes de qualquer efeito: tudo o que anima
   aqui pára, e nada do que anima é necessário para perceber a página. */
@media (prefers-reduced-motion: reduce) {
  .lp-demo *,
  .lp-demo-dialog,
  .lp-demo-dialog *,
  .lp-demo-dialog::backdrop {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .lp-menu-preview { --lp-rot: -2deg; --lp-tilt-x: 0deg; --lp-tilt-y: 0deg; }
  .lp-demo-dialog .lp-dialog-kicker,
  .lp-demo-dialog h2,
  .lp-dialog-copy,
  .lp-dialog-form,
  .lp-dialog-escape,
  .lp-dialog-aside { opacity: 1; transform: none; }
  .lp-lang-track { animation: none; }
}

#experimentar { scroll-margin-top: calc(var(--nav-h) + 1rem); }


/* ── A JANELA, VISTA 2: A CARTA LÁ DENTRO ───────────────────────────────
   A janela passa de 880px (formulário) a 980px (carta + argumento). A
   largura anima-se porque a caixa é a mesma caixa: se piscasse e
   aparecesse outra, a pessoa perdia o fio ao que acabou de escrever. */
.lp-demo-dialog.is-carta { width: min(980px, calc(100% - 28px)); }
.lp-dialog-stage[hidden] { display: none; }
.lp-dialog-stage {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* ── A moldura de telemóvel ─────────────────────────────────────────── */
.lp-stage-phone { position: relative; display: grid; place-items: center; isolation: isolate; }
.lp-phone-glow {
  position: absolute;
  z-index: -1;
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.10), rgba(0,0,0,.04) 42%, transparent 70%);
  pointer-events: none;
}
.lp-phone-frame {
  position: relative;
  /* Medidas travadas de propósito: 332−20 de moldura = 312 de ecrã, e
     312/390 = exactamente 0,8 — a escala do iframe. Se a largura pudesse
     encolher, a escala deixava de bater certo e a carta ficava cortada.
     Abaixo de 860px a moldura desaparece e o iframe volta à escala 1. */
  width: 332px;
  aspect-ratio: 332 / 692;
  padding: 10px;
  /* Preto, como a carta lá dentro: um telemóvel verde à volta de uma carta
     a preto e branco lia-se como duas marcas no mesmo sítio. */
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 34px;
  background: linear-gradient(165deg, #2A2A2A, #0A0A0A);
  box-shadow: 0 30px 70px rgba(0,0,0,.34), 0 6px 18px rgba(0,0,0,.2),
              inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(14px) scale(.96);
  opacity: 0;
}
.lp-demo-dialog.is-carta .lp-phone-frame { animation: lp-phone-in 460ms var(--demo-ease) 60ms forwards; }
@keyframes lp-phone-in {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.lp-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 88px;
  height: 17px;
  border-radius: 0 0 11px 11px;
  background: #0A0A0A;
}
.lp-phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background: var(--demo-paper);
}
/* O iframe é desenhado a 390×840 — a medida de um telemóvel a sério — e
   depois encolhido para caber na moldura. Servi-lo directamente a 312px
   dava-lhe uma janela mais estreita do que qualquer telemóvel existe, e a
   carta partia-se ao meio. Assim o que se vê é o que o cliente vê. */
.lp-phone-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 840px;
  border: 0;
  display: block;
  transform: scale(var(--lp-escala, .8));
  transform-origin: top left;
  opacity: 0;
  transition: opacity 320ms ease-out;
}
.lp-phone-screen.is-ready iframe { opacity: 1; }

/* Enquanto a carta não chega, um esqueleto com a forma dela. Um ecrã
   branco durante dois segundos lê-se como avaria, não como espera. */
.lp-phone-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 34px 18px 18px;
  background: var(--demo-paper);
  transition: opacity 280ms ease-out, visibility 280ms;
}
.lp-phone-screen.is-ready .lp-phone-skeleton { opacity: 0; visibility: hidden; }
.lp-sk {
  display: block;
  border-radius: 4px;
  background: linear-gradient(100deg, #E4DCCB 20%, #F2EBDC 38%, #E4DCCB 56%);
  background-size: 260% 100%;
  animation: lp-sk-shimmer 1.3s linear infinite;
}
.lp-sk--hero { height: 128px; border-radius: 8px; }
.lp-sk--line { height: 15px; width: 72%; margin-top: 7px; }
.lp-sk--short { width: 44%; }
.lp-sk--row { height: 52px; border-radius: 6px; margin-top: 5px; }
@keyframes lp-sk-shimmer { to { background-position: -260% 0; } }
.lp-phone-skeleton em {
  margin-top: auto;
  color: #5E6B60;
  font-family: var(--mono);
  font-size: .56rem;
  font-style: normal;
  letter-spacing: .1em;
  text-align: center;
}

/* ── O argumento, ao lado do telemóvel ──────────────────────────────── */
.lp-stage-side > * { opacity: 0; transform: translateY(10px); }
.lp-demo-dialog.is-carta .lp-stage-side > * { animation: lp-stagger 380ms var(--demo-ease) forwards; }
.lp-demo-dialog.is-carta .lp-stage-side > *:nth-child(1) { animation-delay: 140ms; }
.lp-demo-dialog.is-carta .lp-stage-side > *:nth-child(2) { animation-delay: 190ms; }
.lp-demo-dialog.is-carta .lp-stage-side > *:nth-child(3) { animation-delay: 240ms; }
.lp-demo-dialog.is-carta .lp-stage-side > *:nth-child(4) { animation-delay: 290ms; }
.lp-demo-dialog.is-carta .lp-stage-side > *:nth-child(5) { animation-delay: 340ms; }
.lp-demo-dialog.is-carta .lp-stage-side > *:nth-child(6) { animation-delay: 390ms; }

#lp-stage-kicker { overflow-wrap: anywhere; }
.lp-stage-title {
  margin: .9rem 0 .8rem;
  color: var(--demo-pine);
  font-family: var(--disp);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.05em;
}
.lp-stage-title em { color: #C25B3C; font-style: italic; }
.lp-stage-copy { margin: 0; color: #5F7168; font-size: .92rem; line-height: 1.6; }
.lp-stage-list { margin: 1.3rem 0 0; display: grid; gap: .72rem; }
.lp-stage-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: baseline;
  color: #42564B;
  font-size: .84rem;
  line-height: 1.45;
}
.lp-stage-list i { color: var(--demo-terra-deep); font-family: var(--mono); font-size: .56rem; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.lp-stage-list b { color: var(--demo-pine); font-weight: 600; }
.lp-stage-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.5rem; }
.lp-stage-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 50px;
  padding: 0 1.2rem;
  border: 1px solid var(--demo-terra-deep);
  border-radius: 2px;
  background: var(--demo-terra-deep);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  transition: transform 190ms var(--demo-ease), background-color 190ms ease-out, box-shadow 190ms ease-out;
}
.lp-stage-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.26), transparent);
  pointer-events: none;
}
.lp-stage-cta:hover::before { animation: lp-sheen 520ms var(--demo-ease); }
.lp-stage-cta:hover { transform: translateY(-2px); background: #9F4629; box-shadow: 0 10px 26px rgba(6,20,16,.28); }
.lp-stage-cta svg { transition: transform 190ms var(--demo-ease); }
.lp-stage-cta:hover svg { transform: translateX(3px); }
.lp-stage-alt {
  color: var(--demo-terra-deep);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180,81,47,.35);
  transition: text-decoration-color 180ms ease-out, color 180ms ease-out;
}
.lp-stage-alt:hover { color: #8F3D22; text-decoration-color: currentColor; }
.lp-stage-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17,50,43,.12);
  width: 100%;
  color: #5E6B60;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease-out;
}
.lp-stage-back:hover { color: var(--demo-pine); }
.lp-stage-back svg { transition: transform 180ms var(--demo-ease); }
.lp-stage-back:hover svg { transform: translateX(-3px); }
.lp-stage-back:focus-visible { outline: 2px solid var(--demo-pine); outline-offset: 3px; }

/* O atalho do exemplo deixou de ser um link para fora: é um botão que
   carrega a carta no mesmo telemóvel, ao lado. */
.lp-dialog-escape button {
  color: var(--demo-terra-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180,81,47,.35);
  transition: text-decoration-color 180ms ease-out, color 180ms ease-out;
}
.lp-dialog-escape button:hover { color: #8F3D22; text-decoration-color: currentColor; }

/* A vista do formulário sai antes de a carta entrar — nunca as duas ao
   mesmo tempo, que faria a caixa saltar de altura. */
.lp-dialog-body.is-leaving { animation: lp-view-out 180ms var(--demo-ease) forwards; }
@keyframes lp-view-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 860px) {
  /* A janela ganha scroll no estreito, e um ✕ que sai do ecrã é uma
     janela de onde não se sai. Fica colado ao topo da caixa. */
  .lp-dialog-topline {
    position: sticky;
    top: calc(clamp(1.5rem, 4vw, 2.5rem) * -1);
    z-index: 5;
    margin-inline: calc(clamp(1.5rem, 4vw, 2.5rem) * -1);
    padding: .6rem clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(var(--demo-paper) 72%, rgba(247,243,234,0));
  }
  /* Num telemóvel, uma moldura de telemóvel dentro de uma janela é uma
     piada má: a carta ocupa a janela toda e o argumento vai para baixo. */
  .lp-dialog-stage { grid-template-columns: 1fr; gap: 1.25rem; }
  .lp-phone-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    min-width: 0;
    height: min(62vh, 560px);
    padding: 0;
    border-radius: 10px;
  }
  .lp-phone-notch { display: none; }
  .lp-phone-screen { border-radius: 9px; }
  .lp-phone-screen iframe { position: static; width: 100%; height: 100%; transform: none; }
  .lp-phone-skeleton { padding: 16px; }
  .lp-phone-glow { display: none; }
  .lp-stage-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .lp-stage-ctas { margin-top: 1.1rem; }
  .lp-stage-cta { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .lp-demo-dialog.is-carta { width: calc(100% - 20px); max-height: 94vh; }
  .lp-phone-frame { height: min(58vh, 480px); }
  .lp-stage-list { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-phone-frame { opacity: 1; transform: none; animation: none !important; }
  .lp-stage-side > * { opacity: 1; transform: none; }
  .lp-sk { animation: none; }
}

/* O botão do hero ganha uma faísca que varre uma vez por ciclo longo —
   é o único elemento animado desta dobra, por isso não compete com nada. */
#hero-demo-trigger { position: relative; overflow: hidden; }
.btn-spark {
  position: absolute;
  top: 0; left: -40%;
  width: 34%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(24,24,24,.14), transparent);
  pointer-events: none;
  animation: lp-spark 6.5s var(--ease) infinite;
}
@keyframes lp-spark {
  0%, 62% { left: -40%; }
  80%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .btn-spark { animation: none; display: none; } }
