/* =====================================================================
   FWS VENDAS — design system
   Preto profundo, dourado de destaque, branco e cinza. Sem exagero de efeito:
   o dourado marca ação e estado; o resto é contraste e espaço.
   ===================================================================== */

:root {
  --color-primary: #D98F07;
  --color-primary-light: #EBA807;
  --color-dark: #0D0D0D;

  --bg: #0D0D0D;
  --bg-raised: #141413;
  --bg-sunken: #090909;
  --surface: #171716;
  --surface-2: #1E1E1C;
  --line: #2A2926;
  --line-strong: #3A3833;
  --fg: #F4F1EA;
  --fg-2: #B9B4A8;
  --fg-3: #85807A;
  --gold: var(--color-primary);
  --gold-2: var(--color-primary-light);
  --gold-ink: #1A1205;
  --gold-soft: rgba(217, 143, 7, .12);
  --gold-ring: rgba(235, 168, 7, .55);
  --ok: #3FB47E;
  --ok-soft: rgba(63, 180, 126, .12);
  --warn: #E5A33B;
  --danger: #E5604D;
  --danger-soft: rgba(229, 96, 77, .12);

  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -30px rgba(0, 0, 0, .8);

  --font-display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--fg-3); }
.text-left { text-align: left; }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.spread { justify-content: space-between; }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { white-space: nowrap; }
.brand__name b { color: var(--gold-2); font-weight: 600; }

/* ---------- botões ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1 var(--font-body); letter-spacing: .005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--primary { --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: var(--gold-ink); background: var(--btn-bg); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -14px rgba(235,168,7,.7); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { --btn-bg: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--fg-3); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-s); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--fg-2); cursor: pointer; }
.link-btn:hover { color: var(--fg); }

/* ---------- formulários: campos de vidro que acendem em dourado ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.field__hint { font-size: 12.5px; color: var(--fg-3); }
.field__error { font-size: 13px; color: var(--danger); }
.input-wrap {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input-wrap:focus-within { border-color: var(--gold-ring); background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(217, 143, 7, .08); }
.input-wrap.has-error { border-color: rgba(229, 96, 77, .6); }
.input {
  flex: 1; min-width: 0; width: 100%;
  padding: 14px 16px; border: 0; outline: none; background: transparent;
  color: var(--fg); font: 500 15px/1.4 var(--font-body);
  border-radius: var(--radius);
}
.input::placeholder { color: var(--fg-3); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--fg); transition: background-color 600000s 0s; }
.input-wrap__prefix { padding-left: 16px; color: var(--fg-3); font-size: 14px; white-space: nowrap; }
.input-wrap__prefix + .input { padding-left: 2px; }
.input-wrap__suffix { padding-right: 14px; color: var(--fg-3); font-size: 13px; white-space: nowrap; }
.eye { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 4px; border: 0; background: none; color: var(--fg-3); cursor: pointer; border-radius: 10px; }
.eye:hover { color: var(--fg); }
.eye svg { width: 20px; height: 20px; }
.eye .eye-off { display: none; }
.eye[aria-pressed="true"] .eye-on { display: none; }
.eye[aria-pressed="true"] .eye-off { display: block; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--fg-2); font-size: 14px; cursor: pointer; line-height: 1.45; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; border: 1px solid var(--line-strong); border-radius: 6px;
  background: rgba(255,255,255,.03); display: grid; place-content: center; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.check input::before { content: ""; width: 10px; height: 10px; background: var(--gold-ink); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--gold-2); border-color: var(--gold-2); }
.check input:checked::before { transform: scale(1); }

/* ---------- avisos ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; color: var(--fg-2); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert--ok { border-color: rgba(63,180,126,.35); background: var(--ok-soft); color: #CFEEDF; }
.alert--error { border-color: rgba(229,96,77,.4); background: var(--danger-soft); color: #F6D3CD; }
.alert--info { border-color: rgba(217,143,7,.35); background: var(--gold-soft); color: #F3DFB2; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line); white-space: nowrap; }
.badge--gold { background: var(--gold-soft); color: var(--gold-2); border-color: rgba(217,143,7,.3); }
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(63,180,126,.3); }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(229,96,77,.3); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--plain::before { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow); }
.card__title { font-size: 17px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }

/* =====================================================================
   Login e cadastro — duas colunas (do componente Sign In, em PHP + CSS):
   formulário à esquerda; à direita, o painel da marca em vidro fosco.
   As peças entram em sequência, subindo e saindo do desfoque.
   ===================================================================== */
.auth { display: flex; min-height: 100svh; container-type: inline-size; }
.auth__form-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 28px 32px; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.auth__wrap { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.auth__title { font-size: 36px; font-weight: 300; letter-spacing: -.045em; }
.auth__title b { font-weight: 600; color: var(--gold-2); }
.auth__desc { color: var(--fg-2); font-size: 16px; }
.auth__form { display: flex; flex-direction: column; gap: 18px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.auth__alt { text-align: center; font-size: 14px; color: var(--fg-3); }
.auth__legal { font-size: 12.5px; color: var(--fg-3); text-align: center; }

.auth__hero-col { display: none; flex: 1 1 0; min-width: 0; padding: 16px; }
.auth__hero {
  position: relative; height: 100%; min-height: 560px; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(235,168,7,.30), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(217,143,7,.18), transparent 60%),
    linear-gradient(160deg, #191712 0%, #0B0B0A 70%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 40px;
}
.auth__hero::before { /* grade fina dourada */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(235,168,7,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(235,168,7,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
}
.auth__hero > * { position: relative; }
.auth__hero-title { margin-top: 14px; font-size: clamp(30px, 3.4vw, 46px); max-width: 15ch; }
.auth__hero-title em { font-style: normal; color: var(--gold-2); }
.auth__hero-sub { margin-top: 14px; color: var(--fg-2); max-width: 40ch; font-size: 16px; }
.glass-list { display: grid; gap: 12px; }
.glass {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.09);
  background: rgba(30, 28, 24, .45);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.glass .glass__icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }
.glass__icon svg { width: 20px; height: 20px; }
.glass b { display: block; font-size: 14.5px; }
.glass span { display: block; font-size: 13.5px; color: var(--fg-2); }

@container (min-width: 900px) {
  .auth__hero-col { display: block; }
  .auth__title { font-size: 46px; }
}

/* entrada em sequência: .d1….d9 = posição na fila (classes, e não style="", por causa da CSP sem unsafe-inline) */
.in { opacity: 0; filter: blur(4px); transform: translateY(10px); animation: fade-up .6s var(--ease) calc(var(--d, 0) * 90ms) forwards; }
.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; }
.d6 { --d: 6; } .d7 { --d: 7; } .d8 { --d: 8; } .d9 { --d: 9; }
.in-right { opacity: 0; filter: blur(4px); transform: translateX(32px); animation: fade-up .8s var(--ease) .25s forwards; }
@keyframes fade-up { to { opacity: 1; filter: none; transform: none; } }

/* =====================================================================
   Onboarding
   ===================================================================== */
.onb { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
.onb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 28px; padding: 0; }
.steps li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 13px; color: var(--fg-3); background: var(--surface); border: 1px solid var(--line); }
.steps li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--fg-3); }
.steps li.is-done { color: var(--fg-2); }
.steps li.is-done i { background: var(--ok); color: #06140D; }
.steps li.is-current { color: var(--fg); border-color: rgba(217,143,7,.45); background: var(--gold-soft); }
.steps li.is-current i { background: var(--gold-2); color: var(--gold-ink); }
.onb__title { font-size: clamp(30px, 4vw, 42px); }
.onb__sub { color: var(--fg-2); margin-top: 10px; font-size: 16px; max-width: 60ch; }
.onb__grid { display: grid; gap: 20px; margin-top: 28px; }
.onb__section-title { font-size: 18px; margin-bottom: 4px; }
.slug-status { font-size: 13px; min-height: 19px; }
.slug-status.is-ok { color: var(--ok); }
.slug-status.is-bad { color: var(--danger); }

.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-l); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.plan:hover { border-color: var(--fg-3); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--gold-2); background: linear-gradient(180deg, rgba(235,168,7,.10), rgba(235,168,7,.02)); box-shadow: 0 0 0 3px rgba(217,143,7,.15); }
.plan:has(input:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.plan__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.plan__price { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.plan__price small { font-size: 14px; font-weight: 500; color: var(--fg-3); letter-spacing: 0; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--fg-2); }
.plan__list li { display: flex; gap: 8px; }
.plan__list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--gold-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan__tag { position: absolute; top: -11px; right: 16px; }
.help-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--radius-l); border: 1px dashed var(--line-strong); }

/* =====================================================================
   Painel (lojista e admin)
   ===================================================================== */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100svh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 268px; transform: translateX(-100%); transition: transform .3s var(--ease); background: var(--bg-sunken); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; }
.sidebar.is-open { transform: none; }
.sidebar__brand { padding: 4px 8px 18px; }
.sidebar__store { margin: 0 4px 16px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sidebar__store b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__store a { font-size: 12.5px; overflow-wrap: anywhere; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a, .nav span.nav__item { display: flex; white-space: nowrap; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--fg-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--surface); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--gold-soft); color: var(--gold-2); }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav span.nav__item { color: var(--fg-3); cursor: default; }
.nav button.nav__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--fg-2); font-size: 14.5px; font-weight: 500; text-align: left; }
.nav button.nav__item:hover { background: var(--surface); color: var(--fg); }
.nav__soon { margin-left: auto; white-space: nowrap; flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; }
.sidebar__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sidebar__user { padding: 6px 12px; font-size: 13px; color: var(--fg-3); overflow-wrap: anywhere; }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; background: rgba(13,13,13,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__menu { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: none; color: var(--fg); cursor: pointer; }
.topbar__menu svg { width: 20px; height: 20px; }
.topbar__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.page { padding: 24px 20px 64px; max-width: 1180px; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page__title { font-size: clamp(26px, 3vw, 34px); }

@media (min-width: 1024px) {
  .shell { grid-template-columns: 268px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100svh; transform: none; }
  .topbar__menu, .scrim { display: none; }
  .page { padding: 32px 40px 72px; }
}

.trial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--radius-l); border: 1px solid rgba(217,143,7,.35); background: linear-gradient(100deg, rgba(235,168,7,.14), rgba(235,168,7,.02) 60%); margin-bottom: 20px; }
.trial__days { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--gold-2); letter-spacing: -.02em; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.stat { padding: 18px 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.stat__label { font-size: 13px; color: var(--fg-3); font-weight: 600; }
.stat__value { margin-top: 6px; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__note { font-size: 12.5px; color: var(--fg-3); }

.dash-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; margin-top: 14px; height: 8px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.checklist li:last-child { border-bottom: 0; }
.checklist__box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.checklist li.is-done .checklist__box { background: var(--ok); border-color: var(--ok); color: #06140D; }
.checklist li.is-done .checklist__text { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--fg-3); }
.checklist__box svg { width: 14px; height: 14px; }
.checklist__phase { margin-left: auto; font-size: 11.5px; color: var(--fg-3); white-space: nowrap; }

.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); padding: 12px 16px; background: var(--bg-raised); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- páginas simples (início, erro, vitrine nesta fase) ---------- */
.minimal { min-height: 100svh; display: flex; flex-direction: column; }
.minimal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px clamp(16px, 4vw, 40px); }
.minimal__main { flex: 1; display: flex; flex-direction: column; }
.center-box { margin: auto; width: 100%; max-width: 560px; padding: 40px 20px; text-align: center; }
.center-box h1 { font-size: clamp(28px, 4vw, 40px); }
.center-box p { color: var(--fg-2); margin-top: 12px; }
.center-box .row { justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.code-num { font-family: var(--font-display); font-size: 80px; font-weight: 600; color: var(--gold-2); letter-spacing: -.05em; line-height: 1; }
pre.debug { text-align: left; white-space: pre-wrap; font-size: 12px; background: var(--surface); padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--fg-2); margin-top: 20px; overflow-wrap: anywhere; }

.hero { padding: clamp(40px, 9vw, 110px) clamp(16px, 4vw, 40px) 40px; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(40px, 7vw, 82px); max-width: 13ch; letter-spacing: -.045em; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p { margin-top: 20px; max-width: 52ch; color: var(--fg-2); font-size: clamp(16px, 1.6vw, 19px); }
.hero .row { margin-top: 32px; flex-wrap: wrap; }
.home-plans { max-width: 1100px; margin: 0 auto; width: 100%; padding: 24px clamp(16px, 4vw, 40px) 80px; }

.footer { padding: 24px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 420px) {
  .minimal__top .brand__name { display: none; }
  .minimal__top .btn--sm { padding: 0 12px; }
}

/* =====================================================================
   App instalado (PWA)
   ===================================================================== */
.offline__icon { margin: 0 auto 20px; border-radius: 18px; }

/* no app instalado do iPhone a barra de status fica por cima: respeita o entalhe e a barra de gestos */
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }
  .sidebar { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .page { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .onb, .auth__form-col, .minimal__top { padding-top: calc(28px + env(safe-area-inset-top)); }
  [data-install-hide-standalone] { display: none !important; }
}

.install-btn[hidden] { display: none; }
.install-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: var(--radius-l); border: 1px solid rgba(217,143,7,.35); background: var(--gold-soft); margin-bottom: 20px; }
.install-card[hidden] { display: none; }
.install-card__text b { display: block; }
.install-card__text span { font-size: 13.5px; color: var(--fg-2); }

.ios-sheet { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-strong); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.ios-sheet.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.ios-sheet__steps { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 12px; }
.ios-sheet__steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.ios-sheet__steps i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold-2); font-style: normal; font-weight: 700; }
.ios-sheet__steps svg { width: 18px; height: 18px; vertical-align: -3px; color: #4C9BFF; }

.platforms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.platform { display: flex; flex-direction: column; gap: 12px; }
.platform h2 { font-size: 19px; }
.platform ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--fg-2); font-size: 14.5px; }
.platform.is-mine { border-color: rgba(217,143,7,.55); box-shadow: 0 0 0 3px rgba(217,143,7,.12); }
.platform__tag { align-self: flex-start; }
.platform__tag[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .in, .in-right { opacity: 1; filter: none; transform: none; animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
