/* Modais de entrada e cadastro.
   Ficam fora de .marketing-shell, então declaram o próprio escopo de tokens
   para acompanhar a direção da landing em vez de herdar o violeta saturado
   de tokens.css. Cabeçalho alinhado à esquerda: formulário centralizado
   inteiro lê como template; alinhado lê como produto. */

.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 24px; font-family: Arial, sans-serif; font-size: 14px; font-weight: 500; }
.auth-google img { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.auth-google:hover { background: #f8faff; }
.auth-modal-wrapper {
  --auth-surface: #FFFFFF;
  --auth-surface-alt: #F5F5F7;
  --auth-fg: #1D1D1F;
  --auth-fg-secondary: #6E6E73;
  --auth-fg-tertiary: #86868B;
  --auth-border: #D2D2D7;
  --auth-border-strong: #B8B8BF;
  --auth-accent: oklch(0.47 0.21 286);
  --auth-accent-hover: oklch(0.4 0.19 286);
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(29, 29, 31, .48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "Figtree", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.auth-modal-wrapper[aria-hidden="true"] { display: none; }

.auth-modal-container {
  position: relative;
  width: min(100%, 452px);
  margin: auto;
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--auth-fg);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(29, 29, 31, .18);
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--auth-fg-tertiary);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.auth-modal-close:hover { color: var(--auth-fg); background: var(--auth-surface-alt); }

.auth-modal-header { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.auth-modal-header .brand-lockup { margin-bottom: 14px; }
.auth-modal-header .brand-lockup__mark { background: var(--auth-fg); border-radius: 7px; font-size: 14px; }
.auth-modal-header .brand-lockup__name { color: var(--auth-fg); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; }
.auth-modal-title { margin: 0; font-size: 23px; font-weight: 620; line-height: 1.14; letter-spacing: -.028em; }
.auth-modal-subtitle { margin: 0; color: var(--auth-fg-secondary); font-size: 14px; line-height: 1.55; }

.auth-modal-card { display: flex; flex-direction: column; gap: 15px; }
.auth-modal-card .field > span { color: var(--auth-fg-secondary); font-size: 12.5px; font-weight: 560; letter-spacing: 0; }
.auth-modal-card .field > small { color: var(--auth-fg-tertiary); font-size: 11.5px; }
.auth-modal-card :is(input, select) {
  min-height: 44px;
  color: var(--auth-fg);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border-strong);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 150ms ease;
}
.auth-modal-card :is(input, select):hover { border-color: var(--auth-fg-tertiary); }
.auth-modal-card :is(input, select):focus { border-color: var(--auth-accent); }
.auth-modal-card input::placeholder { color: var(--auth-fg-tertiary); }

.auth-btn {
  width: 100%;
  min-height: 48px;
  color: oklch(0.99 0 0);
  background: var(--auth-accent);
  border: 1px solid var(--auth-accent);
  border-radius: 980px;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 550;
}
.auth-btn:hover { color: oklch(0.99 0 0); background: var(--auth-accent-hover); border-color: var(--auth-accent-hover); }

/* .auth-btn define fundo de acento e vem depois de base.css na ordem de
   import, então a variante fantasma precisa ser reafirmada aqui. */
.button--ghost.auth-btn { color: var(--auth-fg-secondary); background: transparent; border-color: var(--auth-border-strong); }
.button--ghost.auth-btn:hover { color: var(--auth-fg); background: var(--auth-surface-alt); border-color: var(--auth-fg-tertiary); }

/* Nota de preço junto do botão: o valor precisa estar visível na hora da
   decisão, não só dentro do rótulo do botão. */
.auth-price-note {
  margin: -4px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--auth-fg-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}
.auth-price-note strong { color: var(--auth-fg); font-size: 14px; font-weight: 620; font-variant-numeric: tabular-nums; }

.auth-modal-footer-text { margin: 0; color: var(--auth-fg-secondary); font-size: 13px; text-align: center; }
.auth-modal-footer-text a, .auth-modal-footer-text button { color: var(--auth-accent); font-weight: 600; }

/* Paywall: um aviso, não um cartaz. */
.auth-modal-container--notice { width: min(100%, 428px); }
.auth-notice-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 4px 10px;
  color: oklch(0.46 0.16 40);
  background: oklch(0.96 0.03 60);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.product-tour { position: fixed; right: 24px; bottom: 24px; z-index: var(--z-tour); width: min(390px,calc(100vw - 32px)); padding: 20px; color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.product-tour__topline, .product-tour__actions, .product-tour__actions > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-tour__topline > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.product-tour__topline button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-alt); cursor: pointer; }
.product-tour h2 { margin: 14px 0 7px; font-size: 21px; letter-spacing: -.025em; }
.product-tour p { margin: 0; color: var(--fg-secondary); font-size: 13px; line-height: 1.55; }
.product-tour__actions { margin-top: 20px; }
.product-tour__actions button { min-height: 38px; padding: 0 12px; color: var(--fg-secondary); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; cursor: pointer; }
.product-tour__actions #btn-tour-next { color: var(--surface); background: var(--accent); border-color: var(--accent); }
.tour-target { position: relative; z-index: calc(var(--z-overlay) - 1) !important; outline: 3px solid var(--accent) !important; outline-offset: 5px !important; }

.workflow-rail__activation { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.4fr); gap: 20px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid color-mix(in oklch, var(--accent) 18%, var(--border)); border-radius: var(--radius-md); }
.workflow-rail__activation p { margin: 0 0 3px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.workflow-rail__activation h2 { margin: 0; font-size: 14px; letter-spacing: -.015em; }
.workflow-rail__activation > div > span { display: block; margin-top: 5px; color: var(--fg-secondary); font-size: 11px; line-height: 1.45; }
.workflow-rail__activation ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; list-style: none; }
.workflow-rail__activation li { min-width: 0; padding: 9px; display: grid; grid-template-columns: 20px 1fr; gap: 0 7px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.workflow-rail__activation li > span { width: 20px; height: 20px; display: grid; place-items: center; color: var(--fg-secondary); background: var(--surface-alt); border-radius: 50%; font-size: 10px; font-weight: 800; }
.workflow-rail__activation li strong { align-self: center; font-size: 11px; line-height: 1.25; }
.workflow-rail__activation li button { grid-column: 2; justify-self: start; margin-top: 5px; padding: 0; color: var(--accent); background: transparent; border: 0; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.workflow-rail__activation li.is-complete { border-color: color-mix(in oklch, var(--green) 45%, var(--border)); }
.workflow-rail__activation li.is-complete > span { color: #fff; background: var(--green); }
.workflow-rail__activation li button:disabled { color: var(--green); cursor: default; }
@media (max-width: 880px) { .workflow-rail__activation { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .workflow-rail__activation ul { grid-template-columns: 1fr; } }

.tutorial-container { max-width: 1100px; margin: auto; padding: 24px 16px; }
.tutorial-header { margin-bottom: 28px; }
.tutorial-title { margin: 0 0 8px; color: var(--fg); font-size: 28px; letter-spacing: -.035em; }
.tutorial-subtitle { max-width: 70ch; margin: 0; color: var(--fg-secondary); font-size: 15px; line-height: 1.6; }
.tutorial-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.bento-card { grid-column: span 6; padding: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.bento-card--full { grid-column: span 12; }
.bento-card--badge { float: right; padding: 3px 8px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; font-size: 10px; font-weight: 750; }
.bento-card__step { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.bento-card__title { margin: 0 0 10px; font-size: 19px; letter-spacing: -.02em; }
.bento-card__desc, .bento-card p { color: var(--fg-secondary); font-size: 13px; line-height: 1.6; }

.mockup-window { margin-top: 14px; overflow: hidden; border: 1px solid oklch(0.31 0.025 278); border-radius: var(--radius-md); }
.tutorial-terminal__header { padding: 8px 12px; display: flex; align-items: center; gap: 6px; background: oklch(0.25 0.025 278); }
.tutorial-terminal__body { padding: 16px; overflow-x: auto; color: oklch(0.93 0.01 278); background: oklch(0.2 0.025 278); font-family: ui-monospace,"Cascadia Code",monospace; font-size: 12px; line-height: 1.65; }
.tutorial-terminal__dot { width: 9px; height: 9px; border-radius: 50%; }
.tutorial-terminal__dot--red { background: var(--red); }
.tutorial-terminal__dot--yellow { background: var(--orange); }
.tutorial-terminal__dot--green { background: var(--green); }
.code-inline { padding: 2px 5px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; font-family: ui-monospace,"Cascadia Code",monospace; }
.visual-flow { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flow-step { flex: 1; min-width: 120px; padding: 14px; text-align: center; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md); }
.flow-arrow { color: var(--fg-secondary); font-size: 18px; }
