/* ==========================================================================
   Hero Checkout — Design System
   DM Sans · Yellow / Black / White · SaaS Pro
   Prefix: bp-*
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --bp-yellow:      #1ab854;
  --bp-yellow-d:    #149647;
  --bp-yellow-soft: #DCFCE7;

  /* Accent ativo (sidebar) — verde vibrante estilo Abacate/Stripe */
  --bp-accent:      #22C55E;
  --bp-accent-d:    #16A34A;
  --bp-accent-soft: #DCFCE7;

  /* Neutrals */
  --bp-black:    #0A0A0A;
  --bp-ink:      #111418;
  --bp-ink-2:    #1A1F26;
  --bp-white:    #FFFFFF;
  --bp-bg:       #F4F4F5;   /* fundo cinza do app shell */
  --bp-bg-soft:  #F7F8FA;
  --bp-line:     #E6E8EC;
  --bp-line-2:   #EFF1F4;
  --bp-mute:     #6B7280;
  --bp-mute-2:   #9CA3AF;
  --bp-text:     #111827;

  /* Status */
  --bp-success:  #15803D;
  --bp-success-bg:#DCFCE7;
  --bp-warning:  #B45309;
  --bp-warning-bg:#FEF3C7;
  --bp-danger:   #B91C1C;
  --bp-danger-bg:#FEE2E2;
  --bp-info:     #1D4ED8;
  --bp-info-bg:  #DBEAFE;

  /* Layout */
  --bp-r:        10px;
  --bp-r-sm:     8px;
  --bp-r-lg:     16px;
  --bp-r-xl:     24px;       /* raio do canvas flutuante */
  --bp-shadow:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.04);
  --bp-shadow-md:0 4px 14px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --bp-shadow-lg:0 20px 40px -12px rgba(15,23,42,.12);
  --bp-shadow-canvas: 0 1px 3px rgba(15,23,42,.04), 0 8px 24px -10px rgba(15,23,42,.08);

  --bp-sidebar-w:260px;
  --bp-header-h: 72px;
  --bp-shell-gap:18px;       /* espaço entre canvas, sidebar e bordas */
  --bp-container:1240px;

  --bp-font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}


/* Reset --------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--bp-font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--bp-text);
  background: var(--bp-bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--bp-ink); text-decoration: none; transition: color .12s; }
a:hover { color: var(--bp-mute); }
img { max-width: 100%; display: block; }
svg { display: block; flex-shrink: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--bp-line); margin: 16px 0; }

h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 15px; font-weight: 600; }

/* Utilities ----------------------------------------------------------------*/
.bp-muted   { color: var(--bp-mute); font-size: 13px; }
.bp-row     { display: flex; gap: 10px; align-items: center; }
.bp-row-end { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.bp-stack   { display: flex; flex-direction: column; gap: 12px; }
.bp-grow    { flex: 1; }
.bp-center  { display: flex; align-items: center; justify-content: center; }
.bp-mono    { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bp-truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-divider { height: 1px; background: var(--bp-line); margin: 14px 0; }
.bp-hp      { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Buttons ------------------------------------------------------------------*/
.bp-btn, .bp-btn-primary, .bp-btn-dark, .bp-btn-ghost, .bp-btn-outline, .bp-btn-danger, .bp-btn-oauth {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 9px 16px; border-radius: var(--bp-r);
  font-weight: 600; font-size: 13.5px; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s, transform .06s, box-shadow .12s;
  user-select: none;
}
.bp-btn svg, .bp-btn-primary svg, .bp-btn-dark svg, .bp-btn-ghost svg,
.bp-btn-outline svg, .bp-btn-danger svg, .bp-btn-oauth svg,
.bp-icon-btn svg, .bp-page-head a svg, .bp-page-head button svg {
  width: 16px; height: 16px; flex-shrink: 0;
}
.bp-icon-btn svg { width: 18px; height: 18px; }
.bp-btn-primary { background: var(--bp-yellow); color: #fff; }
.bp-btn-primary:hover { background: var(--bp-yellow-d); color: #fff; }
.bp-btn-dark    { background: var(--bp-ink); color: var(--bp-white); }
.bp-btn-dark:hover { background: #000; color: var(--bp-white); }
.bp-btn-outline { background: var(--bp-white); color: var(--bp-ink); border-color: var(--bp-line); }
.bp-btn-outline:hover { background: var(--bp-bg); }
.bp-btn-ghost   { background: transparent; color: var(--bp-ink); border-color: var(--bp-line); }
.bp-btn-ghost:hover { background: var(--bp-bg); }
.bp-btn-danger  { background: var(--bp-danger); color: var(--bp-white); }
.bp-btn-danger:hover { background: #991B1B; color: var(--bp-white); }
.bp-btn-lg      { padding: 13px 22px; font-size: 14.5px; border-radius: 12px; }
.bp-btn-sm      { padding: 6px 11px; font-size: 12.5px; border-radius: var(--bp-r-sm); }
.bp-btn-block   { width: 100%; }
.bp-btn:active, .bp-btn-primary:active, .bp-btn-dark:active { transform: translateY(1px); }
button[disabled], .is-loading { opacity: .55; pointer-events: none; }

.bp-btn-oauth {
  background: var(--bp-white); color: var(--bp-ink); border-color: var(--bp-line);
  padding: 12px 16px; font-size: 14px; width: 100%;
}
.bp-btn-oauth:hover { background: var(--bp-bg); }

/* Forms --------------------------------------------------------------------*/
.bp-form { display: flex; flex-direction: column; gap: 14px; }
.bp-form label, .bp-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--bp-text); letter-spacing: .005em; margin-bottom: 6px; }
.bp-form-grid > div > label:first-child { display: block; margin-bottom: 6px; }
.bp-input, .bp-select, .bp-textarea,
.bp-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=file]),
.bp-form select, .bp-form textarea,
.bp-form-grid input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=file]),
.bp-form-grid select, .bp-form-grid textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--bp-line); border-radius: var(--bp-r);
  background: var(--bp-white); font-size: 14px; color: var(--bp-text);
  font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
  box-sizing: border-box;
}
.bp-input:focus, .bp-select:focus, .bp-textarea:focus,
.bp-form input:focus, .bp-form select:focus, .bp-form textarea:focus,
.bp-form-grid input:focus, .bp-form-grid select:focus, .bp-form-grid textarea:focus {
  outline: none; border-color: var(--bp-ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}
.bp-form-grid input:disabled, .bp-form-grid select:disabled, .bp-form-grid textarea:disabled {
  background: var(--bp-bg); color: var(--bp-mute); cursor: not-allowed;
}
.bp-form-grid label { display:block; font-size:12.5px; font-weight:600; color:var(--bp-text); margin-bottom:6px; }

.bp-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.bp-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.bp-form-grid .full { grid-column: 1 / -1; }
.bp-field-help { font-size: 12px; color: var(--bp-mute); margin-top: 2px; }
.bp-field-error{ font-size: 12px; color: var(--bp-danger); margin-top: 2px; }

.bp-check { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.bp-check input { accent-color: var(--bp-ink); width: 16px; height: 16px; }

.bp-filters { display: flex; gap: 8px; align-items: center; margin: 14px 0 18px; flex-wrap: wrap; }
.bp-filters select, .bp-filters input { padding: 8px 10px; font-size: 13.5px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-sm); background: var(--bp-white); min-width: 160px; }


/* Fix: atributo hidden deve sempre esconder, mesmo em flex */
[hidden] { display: none !important; }

