/* OfertaPro: design system of the hub pages (sales, sign-up, login, plans,
   suspended, admin). The creator central (public/criador.css) uses the same
   tokens and loads the same fonts from /_hub/fonts. The hub's CSP forbids
   inline styles, so every rule lives here. Fonts: SIL OFL, see fonts/OFL.txt. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/_hub/fonts/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/_hub/fonts/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_hub/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_hub/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --sand: #f1eee9;
  --sand-2: #eae6df;
  --line: #e6e3de;
  --line-soft: #efede9;
  --line-input: #d4d0c8;
  --line-strong: #c9c5bd;
  --ink: #17181c;
  --ink-2: #4a4f5c;
  --muted: #5c6170;
  --muted-2: #8a8f9a;
  --accent: #c4410c;
  --accent-hover: #9a3412;
  --accent-mark: #d9480f;
  --accent-soft: #fdeee6;
  --accent-on-dark: #e4571b;
  --dark: #17181c;
  --dark-2: #2a2c33;
  --dark-muted: #a9adb8;
  --good: #157f3c;
  --good-soft: #e7f6ec;
  --warn: #b45309;
  --warn-ink: #7a4206;
  --warn-soft: #fff4db;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --chat: #dcf8c6;
  --chat-bg: #e9e4da;
  --shadow-sm: 0 1px 2px rgba(23, 24, 28, .06);
  --shadow: 0 1px 2px rgba(23, 24, 28, .05), 0 8px 24px -12px rgba(23, 24, 28, .14);
  --shadow-lg: 0 2px 6px rgba(23, 24, 28, .06), 0 30px 60px -24px rgba(23, 24, 28, .28);
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ring: 0 0 0 3px rgba(196, 65, 12, .28);
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }
.display { font-family: var(--display); letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brand: symbol (WhatsApp bubble + offer tag) and wordmark, from the OfertaPro logo sheet. */
.brand { --brand-symbol: #d9480f; --brand-pro: #d9480f; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.brand:hover { color: inherit; }
.brand-symbol { flex: none; width: 34px; height: 34px; display: block; }
.bs-bubble, .bs-hole { fill: var(--brand-symbol); }
.bs-tag { fill: #fff; }
.brand-pro { color: var(--brand-pro); }
.on-dark .brand, .brand.on-dark { color: #f6f5f2; --brand-symbol: #e4571b; --brand-pro: #f08a5d; }

/* Buttons */
.button, button { font: inherit; }
.button, button:not(.plain) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.button:hover, button:not(.plain):hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button:active, button:not(.plain):active { transform: translateY(1px); }
.button.secondary, button.secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.button.secondary:hover, button.secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.quiet, button.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line-input); }
.button.quiet:hover, button.quiet:hover { background: var(--sand); color: var(--ink); border-color: var(--line-strong); }
.button.big { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.button.block, button.block { width: 100%; }
.button.small, button.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
button.plain { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 18px; height: 18px; }

/* Forms */
form { display: grid; gap: 18px; margin: 0; }
label, .label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
label small, .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
input, select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-input); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 16px var(--font); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder { color: var(--muted-2); }
label.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 400; line-height: 1.45; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); box-shadow: none; }
.prefix { display: flex; align-items: stretch; height: 48px; border: 1px solid var(--line-input); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.prefix:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--sand); color: var(--ink-2); font-size: 14px; font-weight: 500; border-right: 1px solid var(--line-input); white-space: nowrap; }
.prefix input { height: auto; border: 0; border-radius: 0; box-shadow: none; padding: 0 12px; min-width: 0; }
.error { margin: 0; padding: 12px 14px; border-radius: 10px; color: var(--bad); background: var(--bad-soft); border: 1px solid #f3c4bd; font-size: 14px; font-weight: 600; }
.note { color: var(--muted); font-size: 14px; margin: 0; }

/* Auth pages: dark story panel + form */
.auth { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: 100vh; }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px; background: var(--dark); color: var(--bg); }
.auth-story::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 87, 27, .35), rgba(228, 87, 27, 0) 65%); pointer-events: none; }
.auth-story > * { position: relative; }
.auth-story h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.02em; }
.auth-story p { margin: 0; color: var(--dark-muted); font-size: 17px; line-height: 1.55; }
.auth-story-body { display: grid; gap: 24px; max-width: 460px; }
.auth-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points .icon { color: var(--accent-on-dark); margin-top: 2px; }
.auth-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; }
.auth-shots img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); }
.auth-shots img:nth-child(2) { transform: translateY(18px); }
.auth-foot { color: var(--dark-muted); font-size: 14px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 440px; }
.auth-form h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -.01em; }
.auth-form .lead { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.auth-aside { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 14px; line-height: 1.5; display: grid; gap: 4px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-main { align-items: flex-start; padding: 32px 16px 48px; }
}

/* Centered card (suspended page and server messages) */
.hub-center { display: grid; place-items: center; min-height: 100vh; padding: 48px 16px; }
.hub-card { width: min(480px, 100%); display: grid; gap: 18px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hub-card h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.01em; }
.hub-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.hub-card .badge-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.hub-card .badge-icon .icon { width: 26px; height: 26px; }
.hub-card .actions { display: grid; gap: 10px; }
.hub-card .actions form { display: flex; justify-content: center; }
.link-quiet { justify-self: center; background: none !important; border: 0 !important; color: var(--ink-2) !important; min-height: 44px; font-weight: 600; font-size: 14px; }
.link-quiet:hover { color: var(--ink) !important; text-decoration: underline; }

/* Top bar for logged pages outside the central (plans) */
.bar-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }

/* Segmented control (billing period) */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sand-2); }
.segmented button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.segmented button:hover { background: rgba(255, 255, 255, .6); color: var(--ink); border: 0; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented .off { margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 12px; font-weight: 700; }

/* Plans and payment */
.assinar { padding: 48px 0 72px; }
.assinar-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.assinar-head h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.assinar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plano { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; font-weight: 400; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
button.plano { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: stretch; gap: 12px; padding: 22px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); font-weight: 400; line-height: 1.5; }
button.plano:active { transform: none; }
button.plano:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.plano[aria-checked="true"], button.plano[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plano-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plano-top strong { font-size: 20px; }
.radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
[aria-checked="true"] .radio-dot { border: 7px solid var(--accent); }
.plano .desc { color: var(--ink-2); font-size: 15px; }
.preco { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.preco b { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.preco span { color: var(--muted); font-size: 15px; }
.plano .small-print { color: var(--muted); font-size: 14px; }
.plano .preco { flex-wrap: wrap; }
.plano .preco b { font-size: 30px; }
.resumo { position: sticky; top: 24px; display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.resumo h2 { margin: 0; font-size: 18px; }
.resumo dl { display: grid; gap: 10px; margin: 0; font-size: 15px; }
.resumo dl div { display: flex; justify-content: space-between; gap: 12px; }
.resumo dt { color: var(--ink-2); }
.resumo dd { margin: 0; font-weight: 700; text-align: right; }
.resumo .total { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.resumo .total dd { font-size: 20px; font-variant-numeric: tabular-nums; }
.metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metodos button { min-height: 44px; border: 1.5px solid var(--line-input); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; border-radius: 10px; }
.metodos button:hover { background: var(--sand); color: var(--ink); border-color: var(--line-strong); }
.metodos button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seguro { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.seguro .icon { color: var(--good); }
.pix-box { display: grid; gap: 12px; justify-items: start; }
.pix-box img { width: 220px; height: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; image-rendering: pixelated; }
.pix-box p { margin: 0; font-size: 14px; color: var(--ink-2); }
.empty-resumo { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .assinar-grid { grid-template-columns: 1fr; }
  .resumo { position: static; }
}

/* Termos de uso e política de privacidade */
.legal { max-width: 760px; padding-block: 48px 72px; }
.legal h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.legal .atualizado { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 40px 0 12px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.legal h3 { margin: 22px 0 8px; font-size: 16px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { display: grid; gap: 8px; margin: 0 0 12px; padding-left: 22px; }
.legal strong { color: var(--ink); }
.legal .ficha { display: grid; gap: 4px; margin: 24px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink-2); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.legal .ficha strong { margin-bottom: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.termos-aceite { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
