@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..800&family=Geist+Mono:wght@400;500&display=swap');

/* ---------- base ---------- */
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;  }
.twv-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-5); }
.twv-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
.twv-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); padding: var(--space-5); }

/* ---------- Logo ---------- */
/* The mark's own colours, exactly as in the logo files: not themeable tokens. */
.twv-logo { display: inline-flex; align-items: center; height: 36px; text-decoration: none; border-radius: var(--radius-xs); }
.twv-logo svg { display: block; height: 100%; width: auto; }
.twv-logo-sm { height: 28px; } .twv-logo-lg { height: 56px; } .twv-logo-xl { height: 96px; }
.twv-logo-bubble, .twv-logo-word { fill: #17112E; }
.twv-logo-w { stroke: #2DD4A8; }
.twv-logo-by { fill: #6B7280; }
.twv-logo-night .twv-logo-bubble, .twv-logo-night .twv-logo-word, .twv-logo-night .twv-logo-by,
.twv-on-night .twv-logo-bubble, .twv-on-night .twv-logo-word, .twv-on-night .twv-logo-by,
[data-theme="dark"] .twv-logo-bubble, [data-theme="dark"] .twv-logo-word, [data-theme="dark"] .twv-logo-by { fill: #FFFFFF; }
.twv-logo-night .twv-logo-w, .twv-on-night .twv-logo-w, [data-theme="dark"] .twv-logo-w { stroke: #0E8A6E; }
.twv-logo:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* ---------- Button ---------- */
.twv-btn { font: inherit; font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 20px; letter-spacing: -0.006em; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.twv-btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.twv-btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.twv-btn-block { display: flex; width: 100%; }
.twv-btn-primary { background-color: var(--brand); background-image: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,0)); color: var(--on-brand); box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.18); }
.twv-btn-primary:hover { background-color: var(--brand-hover); }
.twv-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.twv-btn-secondary:hover { background: var(--lilac); }
.twv-btn-ghost { background: transparent; color: var(--ink); }
.twv-btn-ghost:hover { background: var(--lilac); }
.twv-btn-mint { background: var(--mint); color: var(--night); box-shadow: 0 0 0 1px rgba(45,212,168,.4), 0 8px 28px -8px rgba(45,212,168,.55); }
.twv-btn-mint:hover { background: #5EE3BF; }
.twv-btn-outline-night { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.twv-btn-outline-night:hover { background: var(--night-raised); }
.twv-btn-glow { border-radius: var(--radius-pill); color: #06241E; background: linear-gradient(180deg, #6AE8C6 0%, #2DD4A8 55%, #1FB993 100%); box-shadow: 0 0 0 1px rgba(45,212,168,.55), 0 10px 40px -10px rgba(45,212,168,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.twv-btn-glow:hover { box-shadow: 0 0 0 1px rgba(45,212,168,.8), 0 16px 56px -8px rgba(45,212,168,.9), inset 0 1px 0 rgba(255,255,255,.55); }
.twv-btn-glass { border-radius: var(--radius-pill); color: #EEEBF7; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.twv-btn-glass:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.twv-btn:active { transform: translateY(1px); }
.twv-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.twv-btn[disabled], .twv-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.twv-arrow { flex: none; transition: transform .16s ease; }
.twv-btn:hover .twv-arrow { transform: translateX(3px); }

/* ---------- Badge ---------- */
.twv-badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: 13px; line-height: 1; font-weight: 600; white-space: nowrap; }
.twv-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.twv-badge-nodot::before { display: none; }
.twv-badge-brand { background: var(--brand-soft); color: var(--brand-text); }
.twv-badge-neutral { background: var(--lilac); color: var(--ink-muted); }
.twv-badge-blue { background: var(--blue-soft); color: var(--blue); }
.twv-badge-flare { background: var(--flare-soft); color: var(--flare-text); }
.twv-badge-night { background: var(--night-raised); color: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); }
.twv-badge-night::before { background: var(--mint); }
.twv-badge-live::before { box-shadow: 0 0 0 0 currentColor; animation: twv-pulse 1.8s ease-out infinite; }
.twv-badge-night.twv-badge-live::before { color: var(--mint); }
@keyframes twv-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Eyebrow ---------- */
.twv-eyebrow { margin: 0; display: inline-flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.twv-eyebrow-index { color: var(--ink-muted); }
.twv-eyebrow-index::after { content: " —"; }
.twv-on-night .twv-eyebrow { color: var(--mint); }
.twv-on-night .twv-eyebrow-index { color: var(--on-night-muted); }

/* ---------- Panel ---------- */
.twv-panel { position: relative; border-radius: var(--radius-xl); padding: var(--space-6); overflow: hidden; isolation: isolate; }
.twv-panel-raised { background: var(--surface-raised); border: 1px solid var(--line); }
.twv-panel-lilac { background: var(--lilac); }
.twv-panel-night { background: var(--night); color: var(--on-night); }
.twv-panel-night .twv-muted { color: var(--on-night-muted); }
.twv-glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 120% at 100% 0%, rgba(45,212,168,.20), transparent 55%), radial-gradient(80% 60% at 0% 100%, rgba(37,96,235,.10), transparent 60%); }
.twv-dotgrid::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(238,235,247,.10) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.twv-panel-raised.twv-dotgrid::after, .twv-panel-lilac.twv-dotgrid::after { background-image: radial-gradient(rgba(23,17,46,.09) 1px, transparent 1px); }

/* ---------- Chat ---------- */
.twv-chat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface-sunken); border-radius: var(--radius-lg); width: 100%; max-width: 400px; box-sizing: border-box; }
.twv-chat-head { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-3); margin-bottom: var(--space-1); border-bottom: 1px solid var(--line); }
.twv-chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--ink); font-weight: 700; font-size: 14px; flex: none; }
.twv-chat-name { font-weight: 600; font-size: 15px; line-height: 20px; }
.twv-chat-sub { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.twv-bubble { max-width: 84%; padding: 9px 13px 7px; border-radius: var(--radius-lg); font-size: 15px; line-height: 21px; box-shadow: var(--shadow-sm); color: var(--ink); }
.twv-bubble-lead { align-self: flex-start; background: var(--surface-raised); border-bottom-left-radius: 6px; }
.twv-bubble-ai { align-self: flex-end; background: var(--bubble-ai); border-bottom-right-radius: 6px; }
.twv-bubble-tag { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.twv-bubble-tag::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.twv-bubble-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.twv-bubble-meta svg { color: var(--blue); }
.twv-typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: var(--radius-lg); border-bottom-right-radius: 6px; background: var(--bubble-ai); }
.twv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); animation: twv-typing 1.2s infinite ease-in-out; }
.twv-typing i:nth-child(2) { animation-delay: .15s; } .twv-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes twv-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* ---------- MeetingCard ---------- */
.twv-meet { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; max-width: 400px; box-sizing: border-box; }
.twv-meet-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: var(--radius-md); background: var(--night); color: var(--on-night); flex: none; }
.twv-meet-month { font-family: var(--font-mono); font-size: 10px; line-height: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.twv-meet-day { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.twv-meet-body { flex: 1; min-width: 0; }
.twv-meet-title { margin: 0; font-weight: 600; font-size: 15px; line-height: 20px; }
.twv-meet-sub { margin: 2px 0 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- StepCard ---------- */
.twv-step { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.twv-step-n { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.twv-step-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.025em; }
.twv-step-text { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.twv-step-visual { margin-top: var(--space-2); }

/* ---------- PlanCard ---------- */
.twv-plan { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--line); box-sizing: border-box; }
.twv-plan-featured { background: var(--night); color: var(--on-night); border-color: var(--night-line); position: relative; isolation: isolate; overflow: hidden; }
.twv-plan-featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(45,212,168,.22), transparent 55%); }
.twv-plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.twv-plan-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.twv-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.twv-plan-amount { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.twv-plan-period { font-size: 14px; color: var(--ink-muted); }
.twv-plan-credits { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--brand-text); }
.twv-plan-list { list-style: none; margin: 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-3); font-size: 15px; line-height: 22px; }
.twv-plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.twv-plan-list svg { flex: none; margin-top: 3px; color: var(--brand-text); }
.twv-plan-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.twv-plan-featured .twv-plan-period, .twv-plan-featured .twv-plan-note { color: var(--on-night-muted); }
.twv-plan-featured .twv-plan-credits, .twv-plan-featured .twv-plan-list svg { color: var(--mint); }
.twv-plan-featured .twv-plan-list { border-top-color: var(--night-line); }
.twv-plan-cta { margin-top: auto; }

/* ---------- FaqItem ---------- */
.twv-faq { border-bottom: 1px solid var(--line); }
.twv-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; border-radius: var(--radius-xs); }
.twv-faq summary::-webkit-details-marker { display: none; }
.twv-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.twv-faq-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--ink); transition: transform .2s ease, background-color .2s ease; }
.twv-faq[open] .twv-faq-icon { transform: rotate(45deg); background: var(--brand); color: var(--on-brand); }
.twv-faq-body { padding: 0 48px var(--space-5) 0; color: var(--ink-muted); font-size: 16px; line-height: 26px; }
.twv-faq-body p { margin: 0 0 var(--space-3); } .twv-faq-body p:last-child { margin: 0; }

/* ---------- NavBar ---------- */
.twv-nav { position: relative; display: flex; align-items: center; gap: var(--space-5); height: var(--nav-height); padding: 0 var(--space-5); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); box-sizing: border-box; }
.twv-nav-links { display: flex; gap: var(--space-1); margin: 0 0 0 var(--space-4); padding: 0; list-style: none; }
.twv-nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.twv-nav-links a:hover { color: var(--ink); background: var(--lilac); }
.twv-nav-links a:focus-visible, .twv-nav .twv-logo:focus-visible, .twv-nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.twv-nav-actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.twv-nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); cursor: pointer; place-items: center; }
.twv-nav-sheet { display: none; }
/* Menu aberto mais alto que a tela (Ferramentas com 10 itens, 09/11/2026): rola dentro dele. */
.twv-nav-sheet[data-open="true"] { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
/* Painel em colunas do menu (Ferramentas, 09/11/2026) */
.twv-nav-links { align-self: stretch; align-items: center; }
.twv-nav-drop { position: static; display: flex; align-items: center; align-self: stretch; }
.twv-nav-drop > button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-muted); font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; }
.twv-nav-drop > button:hover, .twv-nav-drop[data-open="true"] > button { color: var(--ink); background: var(--lilac); }
.twv-nav-drop > button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.twv-mega { display: block; visibility: hidden; opacity: 0; transition: visibility 0s .25s, opacity .15s .1s; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 16px 0; z-index: 20; }
/* O estado (data-open) acompanha mouse, foco e toque no bundle.js; fechar tem 0,25 s de atraso para o mouse chegar ao painel na diagonal; Esc fecha. */
.twv-nav-drop[data-open="true"] .twv-mega { visibility: visible; opacity: 1; transition-delay: 0s; }
.twv-mega-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-6) var(--space-6) var(--space-5); background: var(--surface-raised, #fff); border: 1px solid var(--line); border-radius: var(--radius-xl, 20px); box-shadow: var(--shadow-md); box-sizing: border-box; }
.twv-mega-h { margin: 0 0 var(--space-2); text-align: left; font: 500 12px/16px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.twv-mega-col a { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.twv-mega-col a:hover { background: var(--lilac); }
.twv-mega-col a:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.twv-mega-col b { font-weight: 600; font-size: 15px; }
.twv-mega-col span { font-size: 13.5px; line-height: 1.35; color: var(--ink-muted); }
.twv-nav-sheet-h { margin: var(--space-2) 0 0; padding: 0 var(--space-3); font: 500 12px/16px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.twv-nav-sheet a.twv-nav-sheet-sub { min-height: 44px; padding-left: var(--space-5); }
.twv-nav-floating { max-width: 1120px; margin: 16px auto 0; height: 64px; padding: 0 10px 0 22px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.10); background: rgba(18,13,36,.62); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
.twv-nav-floating .twv-nav-links a { color: #A9A3BF; }
.twv-nav-floating .twv-nav-links a:hover, .twv-nav-floating .twv-btn-ghost:hover { color: #EEEBF7; background: rgba(255,255,255,.07); }
.twv-nav-floating .twv-btn-ghost { color: #EEEBF7; border-radius: var(--radius-pill); }
.twv-nav-floating .twv-nav-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #EEEBF7; border-radius: var(--radius-pill); }
@media (max-width: 760px) {
  .twv-nav { padding: 0 var(--space-4); }
  .twv-nav-floating { margin: 12px 12px 0; padding: 0 8px 0 16px; height: 60px; }
  .twv-nav-floating .twv-nav-sheet[data-open="true"] { top: calc(100% + 8px); border-radius: var(--radius-xl); background: #1C1634; border: 1px solid rgba(255,255,255,.10); }
  .twv-nav-floating .twv-nav-sheet a { color: #EEEBF7; }
  .twv-nav-floating .twv-nav-sheet a:hover { background: rgba(255,255,255,.07); }
  .twv-nav-links, .twv-nav-actions .twv-btn-ghost { display: none; }
  .twv-nav-actions .twv-btn { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
  .twv-nav-toggle { display: grid; }
  .twv-nav-sheet[data-open="true"] { display: flex; flex-direction: column; gap: var(--space-1); position: absolute; top: 100%; left: 0; right: 0; padding: var(--space-3) var(--space-4) var(--space-5); background: var(--surface-raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); z-index: 10; }
  .twv-nav-sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
  .twv-nav-sheet a:hover { background: var(--lilac); }
}

@media (prefers-reduced-motion: reduce) {
  .twv-btn, .twv-arrow, .twv-faq-icon { transition: none; }
  .twv-badge-live::before, .twv-typing i { animation: none; }
}
