/* Base styles for the public site layout (layouts/site) only — never loaded
   by the back office. Tailwind's preflight is disabled app-wide (Bootstrap
   coexistence in the back office) and the public pages ship no Bootstrap, so
   this provides the minimal reset the utility classes assume. */
/* Preflight is OFF app-wide (corePlugins.preflight=false, for Bootstrap
   coexistence in the back office). Tailwind's `border-*` utilities only set
   width/colour, so without a default `border-style` they render nothing. The
   public site ships no Bootstrap, so re-assert Tailwind's preflight border
   defaults here (scoped to the site stylesheet) — this makes every `border`
   utility on the public pages actually paint a hairline. */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: rgb(var(--ink-100));
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
button, input { font: inherit; }
input { border: 0; }

/* Content prose: paragraph rhythm without per-element utility classes. */
.site-prose p + p { margin-top: 1em; }

/* Instructor bio modal — CSS-only (`:target`), so the section ships no JS.
   Hidden by default (bio still present in the DOM for crawlers); shown when
   its card link sets the URL hash. Panel is fixed/centered, so the browser
   never scroll-jumps to the targeted (always-visible) element. */
.instructor-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.instructor-modal:target { display: flex; }
.instructor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.instructor-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.instructor-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  line-height: 1;
  color: #939393;
}
.instructor-modal__close:hover { color: #212224; }

/* =====================================================================
   MARKETING LAYER — home + immersion conversion design (B2C + B2B).
   Same v2 tokens as the back office (ink ramp, brand yellow), retuned for
   sales: fixed-dark "night" brand moments, premium cards, scarcity, sticky
   purchase. Public site is always light (no .dark), so night sections use
   literal dark values (they shouldn't invert). Prefixed `mk-` to avoid any
   clash with the back-office component layer (.btn-brand, .chip, …).
   ===================================================================== */

.font-display { font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif; font-style: italic; font-weight: 400; }
.mk-tnum { font-variant-numeric: tabular-nums; }
.mk-topline { box-shadow: inset 0 3px 0 0 rgb(var(--brand)); }
::-moz-selection { background: rgb(var(--brand)); color: #0a0a0a; }
::selection { background: rgb(var(--brand)); color: #0a0a0a; }

/* Eyebrow / kicker */
.mk-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--ink-400)); }
.mk-eyebrow::before { content: ''; width: 18px; height: 1.5px; background: rgb(var(--brand)); border-radius: 2px; }
.mk-eyebrow.is-center::before { display: none; }
.mk-eyebrow.is-light { color: #ffd75e; }

/* Buttons */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 11px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; border: 1px solid transparent; transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, filter .16s ease; white-space: nowrap; cursor: pointer; }
.mk-btn svg { width: 17px; height: 17px; }
.mk-btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; border-radius: 12px; }
.mk-btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 9px; }
.mk-btn-block { width: 100%; }
.mk-btn-primary { background: rgb(var(--ink-900)); color: #fff; border-color: rgb(var(--ink-900)); }
.mk-btn-primary:hover { background: rgb(var(--ink-800)); transform: translateY(-1px); }
.mk-btn-brand { background: rgb(var(--brand)); color: #0a0a0a; border-color: rgb(var(--brand)); }
.mk-btn-brand:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(255, 193, 19, .6); }
.mk-btn-outline { background: transparent; color: rgb(var(--ink-800)); border-color: rgb(var(--ink-200)); }
.mk-btn-outline:hover { background: rgb(var(--ink-25)); border-color: rgb(var(--ink-300)); }
.mk-btn-wa { background: #25D366; color: #06281a; border-color: #25D366; }
.mk-btn-wa:hover { filter: brightness(1.05); }
.mk-on-night .mk-btn-outline { color: #f3f1ec; border-color: rgba(255, 255, 255, .22); }
.mk-on-night .mk-btn-outline:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .42); }

/* Night (fixed-dark brand moments) */
.mk-night { background: #0b0b0f; color: #ECEAE4; position: relative; isolation: isolate; }
.mk-night-2 { background: #101015; color: #ECEAE4; position: relative; isolation: isolate; }
.mk-muted { color: #9a988f; }
.mk-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mk-glow::before { content: ''; position: absolute; width: 740px; height: 740px; left: 50%; top: -340px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 193, 19, .20), rgba(255, 193, 19, .05) 40%, transparent 66%); }
.mk-glow::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -220px; background: radial-gradient(circle, rgba(0, 192, 208, .12), transparent 62%); }
.mk-glow.is-side::before { left: -120px; top: -200px; transform: none; width: 520px; height: 520px; }
.mk-grain { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(/%23n)' opacity='0.4'/%3E%3C/svg%3E"); }

/* Cards */
.mk-card { background: #fff; border: 1px solid rgb(var(--ink-100)); border-radius: 16px; }
.mk-card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mk-card-hover:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(10, 10, 10, .3); border-color: rgb(var(--ink-200)); }
.mk-shadow { box-shadow: 0 24px 60px -28px rgba(10, 10, 10, .4), 0 6px 18px -10px rgba(10, 10, 10, .18); }

/* Chips / dots */
.mk-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid rgb(var(--ink-100)); background: #fff; color: rgb(var(--ink-600)); }
.mk-chip svg { width: 14px; height: 14px; }
.mk-chip.is-sm { height: 21px; font-size: 10.5px; padding: 0 8px; }
.mk-chip-brand { background: rgb(var(--brand-50)); border-color: transparent; color: rgb(var(--brand-700)); }
.mk-chip-live { background: rgb(var(--success-soft)); border-color: transparent; color: rgb(var(--success-ink)); }
.mk-chip-warn { background: rgb(var(--warn-soft)); border-color: transparent; color: rgb(var(--warn-ink)); }
.mk-chip-danger { background: rgb(var(--danger-soft)); border-color: transparent; color: rgb(var(--danger-ink)); }
.mk-chip-white { background: #fff; color: rgb(var(--ink-900)); border-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.mk-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; background: currentColor; }
.mk-pulse { position: relative; }
.mk-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .5; animation: mk-pulse 1.8s ease-out infinite; }
@keyframes mk-pulse { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.t-danger { color: rgb(var(--danger-ink)); } .t-success { color: rgb(var(--success-ink)); } .t-warn { color: rgb(var(--warn-ink)); }

/* Photo tiles — gradient fallback (never a broken image); a real <img> sits on
   top when available. */
.mk-photo { position: relative; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; isolation: isolate; }
.mk-photo.is-dim::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .42)); z-index: 1; }
.mk-photo > img { position: relative; z-index: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.mk-ph-1 { background-image: linear-gradient(135deg, #1f6f6b, #2fa39b 55%, #7fd4cc); }
.mk-ph-2 { background-image: linear-gradient(135deg, #b8860b, #ffc113 60%, #ffe08a); }
.mk-ph-3 { background-image: linear-gradient(135deg, #2b2f45, #3f4668 60%, #6b7299); }
.mk-ph-4 { background-image: linear-gradient(135deg, #7a3b2e, #c4654a 55%, #e8a07e); }
.mk-ph-5 { background-image: linear-gradient(135deg, #26323a, #41606b 60%, #86b0bd); }
.mk-ph-6 { background-image: linear-gradient(135deg, #3a2d4f, #6a4f8c 60%, #b39ddb); }
.mk-tag { position: absolute; left: 13px; bottom: 12px; z-index: 2; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }

/* Avatars (same gradient idea as the back office) */
.mk-av { display: inline-grid; place-items: center; border-radius: 999px; font-weight: 600; color: #fff; flex: none; line-height: 1; }
.mk-av-a { background: linear-gradient(135deg, #FFC113, #E5A800); color: #18181B; }
.mk-av-b { background: linear-gradient(135deg, #3F3F46, #18181B); }
.mk-av-c { background: linear-gradient(135deg, #71717A, #52525B); }
.mk-av-e { background: linear-gradient(135deg, #2fa39b, #1f6f6b); }
.mk-av-f { background: linear-gradient(135deg, #c4654a, #7a3b2e); }

/* Stat strip */
.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(var(--ink-100)); border: 1px solid rgb(var(--ink-100)); border-radius: 18px; overflow: hidden; }
@media (min-width: 980px) { .mk-stats { grid-template-columns: repeat(4, 1fr); } }
.mk-stat { background: #fff; padding: 24px; }
.mk-stat .n { font-family: 'Fraunces', Georgia, serif; font-style: normal; font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: rgb(var(--ink-900)); }
.mk-stat .n small { font-size: 20px; color: rgb(var(--ink-300)); }
.mk-stat .l { margin-top: 4px; font-size: 13px; color: rgb(var(--ink-500)); }

/* Timeline */
.mk-timeline { margin: 0; padding: 0; }
.mk-timeline li { position: relative; padding-left: 28px; padding-bottom: 20px; border-left: 1px solid rgb(var(--ink-200)); list-style: none; }
.mk-timeline li:last-child { padding-bottom: 0; }
.mk-timeline .node { position: absolute; left: -5px; top: 4px; height: 10px; width: 10px; border-radius: 999px; background: rgb(var(--ink-300)); }
.mk-timeline .node.hot { background: rgb(var(--brand)); }
.mk-timeline .tm { font-size: 12px; font-weight: 600; color: rgb(var(--ink-400)); font-variant-numeric: tabular-nums; }
.mk-timeline .ev { font-size: 14px; font-weight: 500; color: rgb(var(--ink-800)); }
.mk-timeline .ev.k { color: rgb(var(--ink-900)); }
@media (min-width: 560px) { .mk-timeline.is-two { display: grid; grid-template-columns: 1fr 1fr; -moz-column-gap: 34px; column-gap: 34px; } }

/* Quote mark */
.mk-quote { font-family: 'Fraunces', Georgia, serif; font-style: normal; font-size: 50px; line-height: .45; color: rgb(var(--brand)); }

/* B2B glass / ROI */
.mk-glass { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045); border-radius: 14px; padding: 16px; }
.mk-roi { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045); border-radius: 18px; padding: 28px; }
.mk-roi .n { font-family: 'Fraunces', Georgia, serif; font-style: normal; font-size: 34px; font-weight: 700; color: #fff; }

/* Logos marquee */
.mk-logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mk-marquee { display: flex; gap: 56px; width: -moz-max-content; width: max-content; animation: mk-scroll 38s linear infinite; }
.mk-marquee:hover { animation-play-state: paused; }
@keyframes mk-scroll { to { transform: translateX(-50%); } }
.mk-wordmark { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: rgb(var(--ink-400)); white-space: nowrap; opacity: .85; }

/* FAQ */
.mk-faq { border-bottom: 1px solid rgb(var(--ink-100)); }
.mk-faq > summary { list-style: none; cursor: pointer; padding: 18px 2px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15.5px; font-weight: 600; color: rgb(var(--ink-900)); }
.mk-faq > summary::-webkit-details-marker { display: none; }
.mk-faq .chev { transition: transform .2s ease; color: rgb(var(--ink-400)); flex: none; width: 20px; height: 20px; }
.mk-faq[open] .chev { transform: rotate(45deg); }
.mk-faq .ans { padding: 0 2px 20px; color: rgb(var(--ink-500)); font-size: 14px; line-height: 1.65; max-width: 64ch; }

/* Sticky purchase layout (immersion) */
.mk-buy-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .mk-buy-layout { grid-template-columns: 1fr 384px; gap: 48px; } .mk-buy { position: sticky; top: 88px; } }
.mk-field { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgb(var(--ink-200)); border-radius: 12px; padding: 0 14px; height: 50px; font-size: 14px; font-weight: 500; color: rgb(var(--ink-900)); }
.mk-field svg { width: 18px; height: 18px; color: rgb(var(--ink-400)); }

/* Audience switch — a segmented control of two links ("Para você" / "Para sua
   empresa"). The active segment carries aria-current="page"; the other links to
   the matching landing. No JS, no pane-swap. */
.mk-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.mk-seg-label { height: 33px; display: inline-flex; align-items: center; padding: 0 17px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #cfcdc6; cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.mk-seg-label:hover { color: #fff; }
.mk-seg-label[aria-current="page"],
.mk-seg-label[aria-current="page"]:hover { background: rgb(var(--brand)); color: #0a0a0a; }
.mk-seg-label:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(var(--ring) / .4); }

/* Accommodation picker select (immersion buy widget) */
.mk-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1px solid rgb(var(--ink-200)); border-radius: 12px; background-color: #fff; font-size: 14px; font-weight: 500; color: rgb(var(--ink-900)); background-repeat: no-repeat; background-position: right 12px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.mk-select:focus-visible { outline: none; border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--ring) / .35); }

/* Mobile sticky CTA bar */
.mk-mbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgb(var(--ink-100)); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 980px) { .mk-mbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .mk-marquee { animation: none; }
  .mk-pulse::after { animation: none; }
}

/* Multi-line truncation (cards). Tailwind line-clamp isn't relied on. */
.mk-clamp-2, .mk-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.mk-clamp-2 { -webkit-line-clamp: 2; }
.mk-clamp-3 { -webkit-line-clamp: 3; }

/* Blog post body. The global reset zeros heading/list margins and list styles,
   so the prose scope re-establishes editorial rhythm for migrated HTML. */
.mk-prose { font-size: 17px; line-height: 1.78; color: rgb(var(--ink-700)); }
.mk-prose p { margin-top: 1.15em; }
.mk-prose p:first-child { margin-top: 0; }
.mk-prose h2 { margin-top: 1.9em; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: rgb(var(--ink-900)); }
.mk-prose h3 { margin-top: 1.6em; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: rgb(var(--ink-900)); }
.mk-prose h4 { margin-top: 1.4em; font-size: 18px; font-weight: 600; color: rgb(var(--ink-900)); }
.mk-prose h2, .mk-prose h3, .mk-prose h4 { scroll-margin-top: 90px; }
.mk-prose a { color: rgb(var(--brand-700)); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.mk-prose a:hover { color: rgb(var(--brand-600)); }
.mk-prose strong { font-weight: 600; color: rgb(var(--ink-900)); }
.mk-prose ul, .mk-prose ol { margin-top: 1.15em; padding-left: 1.45em; }
.mk-prose ul { list-style: disc; }
.mk-prose ol { list-style: decimal; }
.mk-prose li { margin-top: .4em; padding-left: .2em; }
.mk-prose li::marker { color: rgb(var(--ink-300)); }
.mk-prose blockquote { margin: 1.7em 0; padding: 4px 0 4px 20px; border-left: 3px solid rgb(var(--brand)); font-style: italic; font-size: 19px; color: rgb(var(--ink-600)); }
.mk-prose figure { margin: 1.7em 0; }
.mk-prose img { margin: 1.7em auto; border-radius: 14px; }
.mk-prose figcaption { margin-top: .6em; font-size: 13px; text-align: center; color: rgb(var(--ink-400)); }
.mk-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 1.7em 0; border-radius: 14px; }
.mk-prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid rgb(var(--ink-100)); }

/* Form fields on the public site. The global reset zeros `input` borders and
   Tailwind runs without preflight (so the `border` utility sets width but not
   style) — this class gives an explicit, on-brand border that always shows. */
.mk-field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgb(var(--ink-200));
  border-radius: 10px;
  background: #fff;
  color: rgb(var(--ink-900));
  font-size: 14px;
}
textarea.mk-field { height: auto; min-height: 96px; padding: 10px 14px; }
.mk-field::-moz-placeholder { color: rgb(var(--ink-400)); }
.mk-field::placeholder { color: rgb(var(--ink-400)); }
.mk-field:focus {
  outline: none;
  border-color: rgb(var(--brand));
  box-shadow: 0 0 0 3px rgba(255, 193, 19, .25);
}

/* ============================================================================
   Checkout (mk-buy-layout) — compact rhythm
   Tighter field height + summary spacing so "Seus dados", o pagamento e o botão
   "Pagar" cabem com pouco/nenhum scroll no desktop — reforçando a sensação de
   formulário rápido. Escopado ao layout do checkout: outros formulários mk-*
   (ex.: Step 2 na confirmação) ficam intactos.
   ========================================================================== */
.mk-buy-layout .mk-field,
.mk-buy-layout .mk-select { height: 40px; }
.mk-buy-layout textarea.mk-field { height: auto; min-height: 72px; }

/* Resumo condensado no mobile (topo) x resumo lateral no desktop. Casado com o
   breakpoint de 980px do .mk-buy-layout. */
.mk-buy-mobile { display: block; }
@media (min-width: 980px) { .mk-buy-mobile { display: none; } }
/* Only the CHECKOUT's aside is hidden on mobile (it has the condensed <details>
   summary instead). Scoped via .mk-buy-aside so the immersion page's purchase
   card (also .mk-buy) stays visible on mobile. */
@media (max-width: 979px) { .mk-buy-aside { display: none; } }
.mk-buy-mobile > summary::-webkit-details-marker { display: none; }

/* ============================================================================
   Floating WhatsApp button (FAB) — our own, modern, on-brand replacement for
   RD Station's dated injected WhatsApp button. Plain anchor, zero JS.
   ========================================================================== */
.mk-wa-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(7, 40, 26, .45), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mk-wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(7, 40, 26, .55), 0 4px 10px rgba(0, 0, 0, .22);
}
.mk-wa-fab svg { width: 28px; height: 28px; fill: currentColor; }

/* On mobile the .mk-mbar (sticky CTA, ~64px, z-index 50) owns the bottom edge.
   Raise the FAB above it so the two never overlap (84px clears the bar with
   margin). z-index 45 keeps the FAB under the mbar and under any modal. */
@media (max-width: 979px) {
  .mk-wa-fab { bottom: 84px; right: 14px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-wa-fab { transition: none; }
  .mk-wa-fab:hover { transform: none; }
}
