/* Consulta MTC · Laseracupuntura */
.lmtc {
  --ink: #0f1d1b;
  --ink-2: #16302b;
  --jade: #1f5c4f;
  --jade-2: #2c8069;
  --jade-soft: #e3efe9;
  --gold: #c9a45c;
  --gold-2: #e2c585;
  --red: #b3412e;
  --red-soft: #f6e4df;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --line: #e4dac7;
  --text: #1c2523;
  --muted: #4a5754;   /* escurecido em 28/09: 5,47:1 era baixo demais para ler no papel */
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 29, 27, .06), 0 12px 32px -12px rgba(15, 29, 27, .22);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hz: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.lmtc-page { margin: 0; background: #0f1d1b; }
.lmtc *, .lmtc *::before, .lmtc *::after { box-sizing: border-box; }
.lmtc [hidden] { display: none !important; }
.lmtc :where(button, input, select) { font: inherit; color: inherit; }
.lmtc :where(a) { color: var(--jade); }
.lmtc h1, .lmtc h2, .lmtc h3 { font-family: var(--serif); line-height: 1.12; margin: 0; }
.lm-hz { font-family: var(--hz); }

/* ---------- topo ---------- */
.lm-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(15, 29, 27, .92); backdrop-filter: blur(10px);
  color: #f3e6c8; border-bottom: 1px solid rgba(201, 164, 92, .25);
}
.lm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit !important; }
.lm-brand strong { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: .3px; }
.lm-brand small { display: block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.lm-seal {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--red); color: #fff5e6; font-family: var(--hz); font-size: 24px;
  box-shadow: inset 0 0 0 2px rgba(255, 245, 230, .35);
}
.lm-user { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.lm-link { background: none; border: 1px solid rgba(201, 164, 92, .5); color: var(--gold-2) !important; border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.lm-link:hover { background: rgba(201, 164, 92, .15); }
.lm-tempo { font-variant-numeric: tabular-nums; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #cfd8d2; }
.lm-tempo:empty { display: none; }
.lm-tempo.lm-tempo-final { background: var(--red); color: #fff; animation: lmPulseBg 1s ease-in-out infinite alternate; }
/* Assinante: sem relógio, sem contagem — selo fixo de acesso ilimitado. */
.lm-tempo.lm-tempo-livre { background: rgba(201, 164, 92, .18); color: var(--gold-2); border: 1px solid rgba(201, 164, 92, .45); animation: none; }
@keyframes lmPulseBg { from { opacity: 1; } to { opacity: .7; } }

/* ---------- portão ---------- */
.lm-gate {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 6vw, 88px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(44, 128, 105, .35), transparent 60%),
    radial-gradient(800px 500px at 110% 120%, rgba(179, 65, 46, .28), transparent 60%),
    linear-gradient(160deg, #0f1d1b 0%, #16302b 55%, #0f1d1b 100%);
  color: #f3ecdc;
  min-height: calc(100vh - 71px);
}
.lm-hero { position: relative; }
.lm-hero-bg {
  position: absolute; top: -40px; left: -12px; font-family: var(--hz); font-size: clamp(160px, 22vw, 320px);
  line-height: 1; color: rgba(201, 164, 92, .07); pointer-events: none; user-select: none; letter-spacing: -10px;
}
.lm-kicker { position: relative; margin: 0 0 14px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lm-hero h1 { position: relative; font-size: clamp(38px, 5.2vw, 68px); font-weight: 600; color: #fbf4e4; }
.lm-hero h1 em { font-style: italic; color: var(--gold-2); }
.lm-lead { position: relative; font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; color: #cfd8d2; margin: 20px 0 28px; }
.lm-feats { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 520px; }
.lm-feats li { display: flex; gap: 14px; align-items: center; font-size: 14px; color: #b9c5bf; }
.lm-feats li strong { display: block; color: #f3ecdc; font-size: 15px; }
.lm-feats li span {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--hz); font-size: 20px; color: var(--gold-2);
  border: 1px solid rgba(201, 164, 92, .45); background: rgba(201, 164, 92, .08);
}

.lm-gate-card {
  position: relative; overflow: hidden; background: var(--card); color: var(--text);
  border-radius: 24px; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 164, 92, .35);
}
.lm-gate-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--jade-2));
}
.lm-returning { background: var(--jade-soft); border-radius: 14px; padding: 16px 18px; }
.lm-returning h2 { font-size: 24px; color: var(--jade); }
.lm-returning p { margin: 2px 0 10px; font-size: 14px; color: var(--muted); }
.lm-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.lm-divider::before, .lm-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.lm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lm-col-2 { grid-column: 1 / -1; }
.lm-req-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.lm-field { display: flex; flex-direction: column; gap: 5px; }
.lm-field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lm-hint { font-size: 12px; color: var(--muted); }
.lmtc input[type=text], .lmtc input[type=email], .lmtc input[type=tel], .lmtc input[type=number], .lmtc input[type=search], .lmtc input[type=date], .lmtc select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
  font-size: 16px;
}
.lmtc input:focus, .lmtc select:focus { border-color: var(--jade-2); box-shadow: 0 0 0 4px rgba(44, 128, 105, .15); }
.lmtc .lm-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(179, 65, 46, .12) !important; }
.lm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.lm-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--jade); flex: none; }
.lm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lm-msg { margin: 8px 0 0; font-size: 14px; min-height: 1em; }
.lm-msg.err { color: var(--red); }
.lm-msg.ok { color: var(--jade); }

.lm-row-inline { display: flex; gap: 10px; }
.lm-row-inline input { flex: 1; min-width: 0; }

.lm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: .2px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s;
}
.lm-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lm-btn:active { transform: translateY(0); }
.lm-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.lm-btn-jade { background: linear-gradient(135deg, var(--jade-2), var(--jade)); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(31, 92, 79, .7); }
.lm-btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink) !important; box-shadow: 0 8px 20px -8px rgba(201, 164, 92, .8); }
.lm-btn-red { background: linear-gradient(135deg, #c9553f, var(--red)); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(179, 65, 46, .7); }
.lm-btn-ghost { background: transparent; color: var(--ink-2) !important; border: 1.5px solid var(--line); }
.lm-btn-ghost:hover { border-color: var(--jade-2); }

/* ---------- app ---------- */
.lm-app { padding: 0 clamp(16px, 4vw, 48px) 48px; max-width: 1240px; margin: 0 auto; }
.lm-app-hero { padding: 40px 0 22px; text-align: center; }
.lm-app-hero .lm-kicker { color: var(--red); }
.lm-app-hero h1 { font-size: clamp(32px, 4.4vw, 52px); color: var(--ink); font-weight: 600; }

.lm-search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lm-search {
  background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.lm-search::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--jade-2); }
.lm-search[data-kind=ponto]::after { background: var(--red); }
.lm-search-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.lm-search-head h2 { font-size: 25px; color: var(--ink); }
.lm-search-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.lm-ico {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--hz); font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--jade-2), var(--jade));
}
.lm-ico-red { background: linear-gradient(135deg, #c9553f, var(--red)); }

.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lm-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px;
  font-size: 13px; cursor: pointer; transition: all .15s; color: var(--ink-2);
}
.lm-chip:hover, .lm-chip.is-on { border-color: var(--jade-2); background: var(--jade-soft); color: var(--jade); }
.lm-chip b { font-weight: 700; }

.lm-atlas { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.lm-atlas-head h2 { font-size: 26px; color: var(--ink); }
.lm-atlas-head h2 .lm-hz { font-size: 18px; color: var(--gold); margin-left: 6px; }
.lm-atlas-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.lm-atlas-view { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 22px; align-items: start; }
.lm-atlas-list { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.lm-atlas-list h3 { width: 100%; font-size: 22px; margin-bottom: 4px; }

/* ---------- temas e Zang Fu ---------- */
.lm-temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.lm-tema {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; padding: 12px 14px; min-height: 64px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .12s;
}
.lm-tema:hover { border-color: var(--jade-2); box-shadow: 0 6px 16px -10px rgba(31, 92, 79, .6); transform: translateY(-1px); }
.lm-tema.is-on { border-color: var(--jade); background: var(--jade-soft); }
.lm-tema-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--hz); font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--jade-2), var(--jade));
}
.lm-tema:nth-child(3n+2) .lm-tema-ic { background: linear-gradient(135deg, #c9553f, var(--red)); }
.lm-tema:nth-child(3n) .lm-tema-ic { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.lm-tema strong { display: block; font-size: 14px; line-height: 1.25; color: var(--ink-2); }
.lm-tema small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.lm-tema-view { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.lm-tema-view h3 { font-size: 22px; margin-bottom: 4px; }
.lm-tema-view .lm-tema-busca { margin: 10px 0 4px; max-width: 420px; }
.lm-tema-view .lm-chips { max-height: 340px; overflow-y: auto; padding-right: 4px; }

.lm-zf-grupo { margin-top: 16px; }
.lm-zf-grupo > p { margin: 0 0 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--red); }
.lm-zf-linha { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.lm-zf-item {
  cursor: pointer; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 8px 10px; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.lm-zf-item:hover { border-color: var(--gold); box-shadow: 0 6px 16px -10px rgba(176, 138, 69, .7); transform: translateY(-1px); }
.lm-zf-item b { display: block; font-family: var(--hz); font-size: 30px; line-height: 1.1; color: var(--jade); font-weight: 700; }
.lm-zf-item span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 4px; }
.lm-zf-item small { display: block; font-size: 11px; color: var(--muted); }
/* ---------- figura com marcadores ---------- */
.lm-fig { position: relative; border-radius: 14px; overflow: hidden; background: #efebe4; line-height: 0; }
.lm-fig img { width: 100%; height: auto; display: block; }
.lm-fig-in { position: relative; }
.lm-dot {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--red); border: 2.5px solid #fff; box-shadow: 0 0 0 3px rgba(179, 65, 46, .35), 0 2px 6px rgba(0, 0, 0, .35);
}
.lm-dot.pulse::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--red);
  animation: lmPulse 1.8s ease-out infinite;
}
@keyframes lmPulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.lm-dot-btn {
  position: absolute; transform: translate(-50%, -50%); border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 6px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap;
}
.lm-dot-btn:hover, .lm-dot-btn:focus { background: var(--red); z-index: 2; }
.lm-dot-btn.mini { width: 13px; height: 13px; padding: 0; border-radius: 50%; font-size: 0; background: var(--red); border: 2px solid #fff; }
.lm-dot-btn.mini:hover, .lm-dot-btn.mini:focus { width: auto; height: auto; padding: 4px 6px; border-radius: 6px; font-size: 11px; background: var(--ink); }
.lm-zoom {
  position: absolute; right: 10px; bottom: 10px; line-height: 1; border: 0; border-radius: 99px;
  background: rgba(15, 29, 27, .8); color: #fff; font-size: 12px; padding: 7px 12px; cursor: pointer;
}

/* ---------- resultados / flashcards ---------- */
.lm-result { margin-top: 32px; scroll-margin-top: 90px; }
.lm-deck-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.lm-deck-head .lm-kicker { color: var(--red); margin-bottom: 6px; }
.lm-deck-head h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); }
.lm-deck-head h2 .lm-hz { color: var(--gold); font-size: .75em; margin-left: 8px; }
.lm-deck-sub { margin: 4px 0 0; color: var(--muted); }
.lm-deck-tools { display: flex; gap: 8px; }

.lm-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.lm-card { perspective: 1400px; cursor: pointer; outline: none; display: flex; }
.lm-card-inner {
  flex: 1; display: grid; transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d;
  min-height: 360px; border-radius: var(--radius);
}
.lm-card.flipped .lm-card-inner { transform: rotateY(180deg); }
.lm-card:focus-visible .lm-card-inner { box-shadow: 0 0 0 4px rgba(44, 128, 105, .35); }
.lm-face {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); overflow: hidden;
}
.lm-back { transform: rotateY(180deg); }
.lm-front { position: relative; justify-content: space-between; }
.lm-front.t-ink { background: linear-gradient(160deg, #16302b, #0f1d1b); color: #f3ecdc; border-color: transparent; }
.lm-front.t-jade { background: linear-gradient(160deg, #2c8069, #1f5c4f); color: #fff; border-color: transparent; }
.lm-front.t-red { background: linear-gradient(160deg, #c9553f, #9d3625); color: #fff; border-color: transparent; }
.lm-front.t-gold { background: linear-gradient(160deg, #f1ddb0, #d8b26b); color: var(--ink); border-color: transparent; }
.lm-front.t-paper { background: var(--card); }
.lm-front .lm-watermark {
  position: absolute; right: -10px; bottom: -30px; font-family: var(--hz); font-size: 150px; line-height: 1;
  opacity: .1; pointer-events: none;
}
.lm-card-kicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; opacity: .8; margin: 0 0 12px; }
.lm-front h3 { font-size: 28px; font-weight: 600; }
.lm-front .lm-hz-big { font-family: var(--hz); font-size: 40px; line-height: 1.2; margin-top: 10px; }
.lm-front .lm-py { font-style: italic; opacity: .9; margin-top: 4px; }
.lm-flip-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .75; margin-top: 16px; }
.lm-flip-hint::before { content: "↻"; font-size: 16px; }
.lm-back h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; color: var(--jade); }
.lm-back p { margin: 0 0 10px; font-size: 14.5px; }
.lm-back ul { margin: 0 0 10px; padding-left: 18px; font-size: 14.5px; }
.lm-back li { margin-bottom: 4px; }
.lm-dl { display: grid; gap: 8px; font-size: 14px; margin: 0 0 12px; }
.lm-dl div { display: grid; grid-template-columns: 86px 1fr; gap: 8px; }
.lm-dl dt { font-weight: 700; color: var(--jade); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }
.lm-dl dd { margin: 0; }
.lm-pts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.lm-pt {
  border: 0; cursor: pointer; border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 700;
  background: var(--red-soft); color: var(--red);
}
.lm-pt:hover { background: var(--red); color: #fff; }
.lm-pt small { font-weight: 500; opacity: .85; }
.lm-front .lm-pts .lm-pt { background: rgba(255, 255, 255, .92); }
.lm-note { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #fbf1dc; color: #6b4d12; }
.lm-card-wide { grid-column: span 2; }
.lm-front .lm-fig { margin: -6px -6px 10px; border-radius: 12px; }

.lm-empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.lm-empty h2 { font-size: 28px; margin-bottom: 8px; }
.lm-empty .lm-chips { justify-content: center; }

/* ---------- CTA diagnóstico ---------- */
.lm-cta {
  margin-top: 30px; border-radius: 22px; padding: clamp(22px, 3.5vw, 38px); color: #f3ecdc; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(179, 65, 46, .45), transparent 60%), linear-gradient(135deg, #16302b, #0f1d1b);
  box-shadow: 0 24px 60px -24px rgba(15, 29, 27, .7);
  display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center;
}
.lm-cta::before { content: "望"; position: absolute; right: 18px; top: -30px; font-family: var(--hz); font-size: 200px; color: rgba(201, 164, 92, .08); line-height: 1; }
.lm-cta .lm-kicker { color: var(--gold); margin-bottom: 8px; }
.lm-cta h3 { font-size: clamp(26px, 3vw, 36px); color: #fbf4e4; }
.lm-cta p { margin: 10px 0 0; color: #cfd8d2; max-width: 720px; position: relative; }
.lm-cta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lm-cta-tags span { border: 1px solid rgba(201, 164, 92, .45); border-radius: 99px; padding: 4px 12px; font-size: 13px; color: var(--gold-2); }
.lm-price { font-family: var(--serif); font-size: 44px; color: var(--gold-2); line-height: 1; text-align: center; position: relative; }
.lm-price small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #b9c5bf; margin-bottom: 6px; }
.lm-cta .lm-btn { margin-top: 14px; }
.lm-cta-link { font-size: 12px; color: #9fb0a9; margin-top: 8px; word-break: break-all; }

.lm-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.lm-actions .lm-btn { min-width: 230px; }
.lm-disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- rodapé, toast, lightbox ---------- */
.lm-foot { background: var(--ink); color: #9fb0a9; font-size: 13px; text-align: center; padding: 26px 16px; }
.lm-foot p { margin: 4px auto; max-width: 820px; }
.lm-foot a { color: var(--gold-2); }
.lm-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .3s ease, opacity .3s, visibility .3s; max-width: calc(100% - 32px); opacity: 0; visibility: hidden; text-align: center;
}
.lm-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.lm-toast.err { background: var(--red); }
.lm-lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10, 18, 17, .88); display: grid; place-items: center; padding: 20px; }
.lm-lightbox-inner { width: min(640px, 100%); max-height: 90vh; overflow: auto; }
.lm-lightbox-x { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; }
.lm-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lmSpin .8s linear infinite; }
@keyframes lmSpin { to { transform: rotate(360deg); } }

/* ---------- folha de impressão / PDF ---------- */
.lmtc-print { display: none; }
.ps-sheet { width: 718px; background: #fff; color: #1c2523; font-family: "DM Sans", Arial, sans-serif; font-size: 12.5px; line-height: 1.5; }
.ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #1f5c4f; padding-bottom: 10px; margin-bottom: 16px; }
.ps-head .ps-brand { font-family: "EB Garamond", Georgia, serif; font-size: 20px; font-weight: 700; color: #1f5c4f; }
.ps-head .ps-brand span { color: #b3412e; }
.ps-head .ps-meta { font-size: 10.5px; color: #5e6b67; text-align: right; }
.ps-title { font-family: "EB Garamond", Georgia, serif; font-size: 30px; font-weight: 700; margin: 0; line-height: 1.1; }
.ps-title .ps-hz { font-family: "Noto Serif SC", serif; color: #b08a45; font-size: 22px; margin-left: 8px; }
.ps-sub { color: #5e6b67; margin: 4px 0 14px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-block { border: 1px solid #e4dac7; border-left: 4px solid #2c8069; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; page-break-inside: avoid; break-inside: avoid; }
.ps-block.ps-red { border-left-color: #b3412e; }
.ps-block.ps-gold { border-left-color: #c9a45c; }
.ps-block h3 { margin: 0 0 6px; font-family: "EB Garamond", Georgia, serif; font-size: 17px; color: #1f5c4f; }
.ps-block h3 .ps-hz { font-family: "Noto Serif SC", serif; color: #b08a45; font-size: 13px; margin-left: 6px; }
.ps-block p, .ps-block ul { margin: 0 0 6px; }
.ps-block ul { padding-left: 16px; }
.ps-row { margin-bottom: 3px; }
.ps-row b { color: #1f5c4f; }
.ps-pts { font-weight: 700; color: #b3412e; }
.ps-fig { position: relative; width: 300px; line-height: 0; border-radius: 8px; overflow: hidden; }
.ps-fig img { width: 100%; }
.ps-fig .lm-dot::after { display: none; }
.ps-point { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.ps-cta { background: #10201d; color: #f3ecdc; border-radius: 10px; padding: 14px 16px; margin-top: 12px; page-break-inside: avoid; break-inside: avoid; }
.ps-cta b { color: #e2c585; }
.ps-cta a { color: #e2c585; }
.ps-foot { font-size: 10px; color: #5e6b67; border-top: 1px solid #e4dac7; margin-top: 12px; padding-top: 8px; }

@media print {
  @page { size: A4; margin: 12mm; }
  body.lmtc-page { background: #fff; }
  body * { visibility: hidden; }
  .lmtc-print, .lmtc-print * { visibility: visible; }
  .lmtc-print { display: block !important; position: absolute; left: 0; top: 0; }
  .lmtc-screen, .lm-toast, .lm-lightbox { display: none !important; }
  .ps-sheet { width: 100%; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- cartão da data de nascimento (1.6.0) ---------- */
.lmtc input[type=date] { font-family: inherit; color: var(--text); display: block; }
.lm-nasc-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 0;
  padding: 14px 18px; background: var(--jade-soft); border: 1px solid var(--line); border-radius: 14px;
}
.lm-nasc-card[hidden] { display: none; }
.lm-nasc-txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.lm-nasc-txt strong { color: var(--jade); font-size: 15px; }
.lm-nasc-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lm-nasc-acoes input[type=date] { width: auto; min-width: 170px; }
.lm-nasc-depois { background: none; border: 0; padding: 6px 4px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.lm-nasc-depois:hover { color: var(--ink-2); }
.lm-nasc-card .lm-msg { flex-basis: 100%; margin: 0; min-height: 0; }
.lm-nasc-card .lm-msg:empty { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .lm-gate { grid-template-columns: 1fr; min-height: 0; }
  .lm-search-grid { grid-template-columns: 1fr; }
  .lm-atlas-view { grid-template-columns: 1fr; }
  .lm-cta { grid-template-columns: 1fr; }
  .lm-price { text-align: left; }
  .lm-card-wide { grid-column: auto; }
}
@media (max-width: 560px) {
  .lm-form { grid-template-columns: 1fr; }
  .lm-row-inline { flex-direction: column; }
  .lm-brand small { display: none; }
  .lm-user > span:not(.lm-tempo) { display: none; }
  .lm-deck { grid-template-columns: 1fr; }
  .lm-actions .lm-btn { width: 100%; }
  .lm-feats { display: none; }
  .lm-nasc-acoes { width: 100%; }
  .lm-nasc-acoes input[type=date] { flex: 1 1 100%; }
  .lm-nasc-acoes .lm-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-card-inner { transition: none; }
  .lm-dot.pulse::after { animation: none; }
}

/* ---------- celular: ajustes finos ---------- */
@media (max-width: 640px) {
  .lm-top { padding: 10px 14px; gap: 10px; }
  .lm-brand { gap: 10px; }
  .lm-brand strong { font-size: 19px; }
  .lm-seal { width: 36px; height: 36px; font-size: 20px; border-radius: 9px; }
  .lm-user { gap: 8px; }
  .lm-link { padding: 5px 12px; font-size: 13px; }

  .lm-gate { padding: 26px 14px 32px; gap: 22px; }
  .lm-hero-bg { font-size: 150px; top: -20px; }
  .lm-kicker { font-size: 10.5px; letter-spacing: 2px; margin-bottom: 10px; }
  .lm-hero h1 { font-size: 31px; line-height: 1.12; }
  .lm-lead { font-size: 15px; margin: 12px 0 0; }
  .lm-gate-card { padding: 18px 14px 20px; border-radius: 18px; }
  .lm-gate-card::before { border-radius: 18px 18px 0 0; }
  .lm-returning { padding: 14px; }
  .lm-returning h2 { font-size: 22px; }
  .lm-divider { margin: 16px 0 12px; font-size: 11px; letter-spacing: 1px; text-align: center; }
  .lm-form { gap: 10px; }
  .lm-btn { width: 100%; min-height: 48px; }
  .lm-deck-tools .lm-btn, .lm-zoom { width: auto; }

  .lm-app { padding: 0 12px 32px; }
  .lm-app-hero { padding: 22px 0 14px; }
  .lm-app-hero h1 { font-size: 27px; }
  .lm-search-grid { gap: 14px; }
  .lm-search { padding: 16px 14px 18px; }
  .lm-search-head { gap: 12px; margin-bottom: 12px; }
  .lm-search-head h2 { font-size: 21px; }
  .lm-search-head p { font-size: 13px; }
  .lm-ico { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }
  .lm-chips { gap: 6px; margin-top: 12px; }
  .lm-chip { padding: 7px 12px; }

  /* regiões do atlas em faixa rolável na horizontal */
  .lm-atlas { margin-top: 18px; padding: 16px 14px; }
  .lm-atlas-head h2 { font-size: 22px; }
  .lm-regions { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 6px; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: thin; }
  .lm-regions .lm-chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .lm-atlas-view { gap: 14px; }
  .lm-temas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lm-tema { padding: 10px; gap: 9px; min-height: 58px; }
  .lm-tema-ic { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .lm-tema strong { font-size: 13px; }
  .lm-tema-view .lm-chips { max-height: 300px; }
  .lm-zf-linha { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lm-zf-item b { font-size: 26px; }
  .lm-zf-item span { font-size: 12px; }
  .lm-atlas-list h3 { font-size: 19px; }
  .lm-dot-btn { font-size: 10px; padding: 3px 5px; }

  .lm-result { margin-top: 22px; }
  .lm-deck-head { margin-bottom: 14px; gap: 10px; }
  .lm-deck-head h2 { font-size: 27px; }
  .lm-deck-sub { font-size: 13.5px; }
  .lm-deck { gap: 14px; }
  .lm-card-inner { min-height: 300px; }
  .lm-face { padding: 18px 16px; }
  .lm-front h3 { font-size: 24px; }
  .lm-front .lm-hz-big { font-size: 34px; }
  .lm-front .lm-watermark { font-size: 120px; }
  .lm-back h4 { font-size: 20px; }
  .lm-back p, .lm-back ul { font-size: 14px; }
  .lm-dl div { grid-template-columns: 74px 1fr; }
  .lm-pt { padding: 6px 9px; }

  .lm-cta { padding: 22px 16px; border-radius: 18px; gap: 14px; margin-top: 22px; }
  .lm-cta::before { font-size: 150px; }
  .lm-cta h3 { font-size: 25px; }
  .lm-cta p { font-size: 14.5px; }
  .lm-price { font-size: 36px; }
  .lm-actions { gap: 10px; margin-top: 18px; }
  .lm-actions .lm-btn { min-width: 0; }
  .lm-empty { padding: 20px 14px; }
  .lm-empty h2 { font-size: 23px; }

  .lm-lightbox { padding: 12px; }
  .lm-lightbox-x { top: calc(6px + env(safe-area-inset-top)); right: 10px; }
  .lm-toast { bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 13.5px; padding: 11px 16px; }
  .lm-foot { padding: 22px 14px calc(22px + env(safe-area-inset-bottom)); font-size: 12px; }
}
@media (max-width: 360px) {
  .lm-brand strong { font-size: 17px; }
  .lm-hero h1 { font-size: 27px; }
  .lm-tempo { font-size: 12px; padding: 3px 8px; }
}
/* Botão do dossiê no cabeçalho do app. */
.lmtc .lm-link-diag { color: #e7cf9a; font-weight: 600; text-decoration: none; }
.lmtc .lm-link-diag:hover { text-decoration: underline; }
