:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --line: #d7d9de;
  --panel: #ffffff;
  --soft: #f6f7f9;
  --accent: #f59e0b;
  --accent-2: #ff7a00;
  --blue: #2563eb;
  --gold: #f5b82e;
  --charcoal: #0b0d10;
  --graphite: #24272d;
  --silver: #aeb4bd;
  --danger: #b42318;
  --warn: #b45309;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(11, 13, 16, 0.98)),
    #0b0d10;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 70px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 13, 16, 0.72), rgba(245, 158, 11, 0.34)),
    url("assets/icon-512.png") right 8% bottom 10% / min(34vw, 360px) no-repeat,
    linear-gradient(135deg, #08090b, #24272d 58%, #0b0d10);
}

.public-site {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: #f8fafc;
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 16px clamp(18px, 5vw, 70px);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(16px);
}

.public-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-weight: 850;
}

.public-nav a:hover {
  color: var(--accent-2);
}

.public-cta {
  min-width: 112px;
}

.public-hero,
.purchase-steps,
.pricing-grid,
.plan-workspaces,
.plan-portals,
.public-feature-grid,
.public-access {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(44px, 8vw, 92px) 0 32px;
  text-align: center;
}

.hero-brand-logo {
  display: block;
  width: min(72vw, 420px);
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
}

.public-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  line-height: 1;
}

.public-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

.public-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.public-tabs button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.public-tabs button.active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
}

.purchase-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 34px;
}

.purchase-steps span {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.purchase-steps b {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink);
  background: #e5e7eb;
}

.purchase-steps .active b {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
}

.purchase-steps i {
  height: 2px;
  background: #d8dee8;
}

.pricing-grid,
.plan-workspaces,
.plan-interface-grid,
.plan-portals,
.plan-portal-grid,
.public-feature-grid,
.public-access {
  display: grid;
  gap: 16px;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-card,
.public-feature-grid article {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.16);
}

.plan-audience {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fff7e6;
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-ribbon {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  background: #fff7e6;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-card strong {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.pricing-card small,
.pricing-card p,
.public-feature-grid p,
.public-access p {
  color: var(--muted);
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding-left: 18px;
  color: var(--muted);
}

.plan-workspaces {
  margin-top: 18px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.plan-interface-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.plan-interface {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.plan-interface.featured {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.14);
}

.plan-interface header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.plan-interface header strong {
  color: var(--accent);
  font-size: 1.25rem;
}

.plan-interface p {
  color: var(--muted);
  line-height: 1.55;
}

.plan-demo-box {
  display: grid;
  gap: 12px;
  border: 1px dashed rgba(245, 158, 11, 0.38);
  border-radius: 8px;
  padding: 14px;
  background: #fff7e6;
}

.plan-demo-box small,
.demo-result {
  color: var(--muted);
  line-height: 1.45;
}

.plan-demo-box label {
  color: var(--ink);
}

.plan-demo-box .primary-button {
  min-height: 42px;
}

.demo-result {
  min-height: 44px;
  margin: 0;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.demo-result.active {
  color: #92400e;
  background: #ffedd5;
}

.plan-portals {
  margin-top: 18px;
}

.plan-portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.plan-portal-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0)),
    #fff;
}

.plan-portal-card.featured {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.14);
}

.portal-browser {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: #f8fafc;
}

.portal-browser span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
}

.portal-browser small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.portal-card-head h3 {
  overflow-wrap: anywhere;
}

.portal-card-head strong {
  color: var(--accent);
  font-size: 1.25rem;
}

.plan-portal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.portal-action-grid {
  display: grid;
  gap: 8px;
}

.portal-action-grid span {
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font-weight: 850;
}

.portal-demo-panel {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  background: #f0fdfa;
}

.portal-demo-panel small {
  color: var(--muted);
  line-height: 1.45;
}

.plan-app-shell {
  display: grid;
  grid-template-columns: minmax(116px, 0.42fr) minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #f8fafc;
}

.plan-app-shell aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  color: #cbd5e1;
  background: #0b0d10;
}

.plan-app-shell aside span {
  border-radius: 8px;
  padding: 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-app-shell aside span.active {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
}

.plan-app-shell main {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
}

.plan-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.plan-kpis b {
  display: grid;
  gap: 6px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.plan-kpis small {
  color: var(--muted);
  font-size: 0.7rem;
}

.plan-flow {
  display: grid;
  gap: 8px;
}

.plan-flow span {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.plan-flow i {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  font-style: normal;
  font-size: 0.8rem;
}

.public-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.public-feature-grid article span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  font-weight: 950;
}

.public-access {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  align-items: center;
  margin-top: 18px;
  padding: 30px 0 60px;
}

.public-access h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.login-copy,
.login-panel {
  align-self: center;
}

.login-copy h1 {
  max-width: 760px;
  margin: 52px 0 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
}

.login-copy p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  line-height: 1.65;
}

.login-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.cloud-error {
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--danger);
  background: #fef3f2;
  line-height: 1.45;
}

.workspace-alert {
  margin-bottom: 16px;
  max-width: 100%;
}

.cloud-notice {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--accent);
  background: #fff7e6;
  line-height: 1.45;
}

.text-button {
  min-height: 36px;
  border: 0;
  padding: 4px;
  color: var(--accent);
  background: transparent;
  font-weight: 950;
  text-align: center;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 max(0px, calc((100vw - 1440px) / 2));
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 282px;
  gap: 22px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 184, 46, 0.22), transparent 32%),
    linear-gradient(180deg, #08090b, #1f2329 62%, #0b0d10);
}

.brand,
.top-actions,
.hero-actions,
.receipt-row,
.receipt-total,
.insight-list li,
.task-item {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.64);
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 850;
  text-align: left;
}

.nav-item span {
  display: grid;
  width: 28px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active span {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
}

.sidebar-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-card span,
.sidebar-card small {
  color: rgba(255, 255, 255, 0.72);
}

.workspace {
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: 282px;
  padding: clamp(20px, 4vw, 42px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.top-actions {
  justify-content: end;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.94;
}

.balanced-title {
  max-width: 820px;
  font-size: clamp(2.45rem, 5.4vw, 5.7rem);
}

h3 {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.primary-button,
.secondary-button,
.contact-button,
.install-button,
.quick-button,
.avatar-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 900;
}

.primary-button,
.install-button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
}

.secondary-button,
.contact-button,
.quick-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.quick-button.danger {
  color: var(--danger);
}

.secondary-button.danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.35);
  background: #fff;
}

.danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  border-color: rgba(220, 38, 38, 0.24);
  background: #fffafa;
}

.danger-zone p {
  margin: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cloud-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cloud-checks span {
  display: grid;
  min-height: 82px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.mini-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--ink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-action.success {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
}

.mini-action.danger {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff7f6;
}

.mini-action.danger:hover {
  border-color: rgba(180, 35, 24, 0.5);
  background: #fee4e2;
}

.avatar-button {
  width: 42px;
  padding: 0;
  border: 1px solid rgba(245, 158, 11, 0.36);
  color: var(--accent);
  background: #fff7e6;
}

.hero-actions,
.quick-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel,
.panel,
.metric,
.receipt {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
}

.app-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 184, 46, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(8, 9, 11, 0.98), rgba(45, 47, 52, 0.94)),
    #0b0d10;
}

.portal-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(10, 11, 13, 0.98), rgba(61, 65, 72, 0.9)),
    #0b0d10;
}

.accounting-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 184, 46, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(12, 13, 16, 0.98), rgba(50, 52, 58, 0.92)),
    #0b0d10;
}

.palacios-accounting-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.98), rgba(5, 86, 76, 0.92)),
    #0b1220;
}

.quotation-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(10, 11, 13, 0.98), rgba(45, 47, 52, 0.9)),
    #0b0d10;
}

.quotation-hero.palacios-quote {
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(12, 13, 16, 0.98), rgba(68, 55, 39, 0.92)),
    #0b0d10;
}

.app-hero p,
.portal-hero p,
.accounting-hero p,
.palacios-accounting-hero p,
.quotation-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.palacios-ledger-card {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(245, 184, 46, 0.16), rgba(255, 255, 255, 0.08));
}

.palacios-ledger-card strong {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
}

.palacios-ledger-card span {
  font-size: 1.2rem;
  font-weight: 950;
}

.palacios-ledger-card small {
  color: rgba(255, 255, 255, 0.72);
}

.palacios-ledger-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.palacios-bars {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(5, 86, 76, 0.86));
}

.palacios-install-panel,
.install-status-grid,
.install-platforms {
  display: grid;
  gap: 14px;
}

.palacios-install-panel {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.78));
}

.install-status-grid,
.install-platforms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.install-status-grid span,
.install-platforms article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.install-platforms b {
  color: var(--ink);
}

.install-platforms small {
  color: var(--muted);
  line-height: 1.45;
}

.muted-copy {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.55;
}

.insight-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-brand-preview {
  --quote-accent: var(--accent);
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
  min-height: 178px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--quote-accent) 24%, transparent), rgba(255, 255, 255, 0.08));
  text-align: center;
}

.quote-brand-preview img,
.quote-brand-preview b {
  width: 74px;
  height: 74px;
  border: 2px solid color-mix(in srgb, var(--quote-accent) 70%, #fff);
  border-radius: 8px;
  background: #fff;
}

.quote-brand-preview img {
  object-fit: contain;
  padding: 8px;
}

.quote-brand-preview b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--quote-accent);
  font-size: 1.5rem;
  font-weight: 950;
}

.quote-brand-preview span {
  font-weight: 950;
}

.command-center {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-preview {
  display: grid;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.portal-preview strong {
  font-size: 1.65rem;
}

.portal-preview small {
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.portal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
}

.command-center strong {
  font-size: 2rem;
}

.accounting-kpis,
.comparison-bars,
.compare-row,
.comparison-controls {
  display: grid;
  gap: 12px;
}

.comparison-controls {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  align-items: end;
  margin-bottom: 18px;
}

.comparison-controls h3 {
  margin-bottom: 4px;
}

.comparison-controls p {
  margin: 0;
}

.accounting-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.accounting-kpis span {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.accounting-kpis b {
  font-size: 1.4rem;
}

.accounting-kpis small,
.compare-row small {
  color: rgba(255, 255, 255, 0.72);
}

.comparison-bars {
  align-self: stretch;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.compare-row span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}

.compare-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.compare-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent-2));
}

.compare-row.danger .compare-track i {
  background: linear-gradient(90deg, #f97316, #f43f5e);
}

.compare-row.soft .compare-track i {
  background: rgba(255, 255, 255, 0.42);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  min-height: 120px;
}

.mini-bars i {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--gold), var(--accent-2));
}

.summary-grid,
.dashboard-grid,
.form-grid,
.invoice-row,
.inventory-form,
.score-grid,
.assistant-grid {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  margin-bottom: 18px;
}

.dashboard-grid.wide-left {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
}

.quote-items {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.quote-items-header,
.quote-item-row {
  display: grid;
  gap: 10px;
}

.quote-items-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.quote-item-row {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.32fr) minmax(150px, 0.42fr) auto;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.quote-item-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.metric,
.panel,
.receipt {
  padding: 20px;
}

.metric {
  min-height: 132px;
}

.metric span,
.metric small,
.panel p,
.insight-list,
.task-item {
  color: var(--muted);
}

.metric span {
  display: block;
  font-size: 0.84rem;
  font-weight: 850;
}

.metric strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.metric.attention {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fffbeb;
}

.panel-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.span-2 {
  grid-column: 1 / -1;
}

.invoice-row {
  grid-template-columns: minmax(180px, 1fr) 92px 140px 52px;
  align-items: end;
}

.inventory-form {
  grid-template-columns: 1.4fr repeat(4, minmax(90px, 0.7fr)) auto;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ced6e2;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(245, 158, 11, 0.22);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

.table-panel {
  overflow: auto;
}

.table {
  display: grid;
  min-width: 640px;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(120px, 1fr));
  align-items: center;
  min-height: 48px;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 8px;
}

.table-row.header {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent);
  background: #fff7e6;
  font-size: 0.78rem;
  font-weight: 950;
}

.badge.info {
  color: var(--blue);
  background: #eff6ff;
}

.badge.warn {
  color: var(--warn);
  background: #fffbeb;
}

.badge.danger {
  color: var(--danger);
  background: #fef3f2;
}

.insight-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li,
.receipt-row,
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf1f6;
  padding: 10px 0;
}

.accounting-insights b {
  text-align: right;
}

.receipt {
  color: #fff;
  background: linear-gradient(180deg, #0b0d10, #2d2f34);
}

.receipt h3 {
  color: #fff;
}

.receipt-row {
  color: rgba(255, 255, 255, 0.74);
}

.receipt-total {
  border-bottom: 0;
  color: #fff;
  font-size: 1.35rem;
}

.timeline,
.task-list,
.progress-stack,
.value-ladder {
  display: grid;
  gap: 14px;
}

.timeline span {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.timeline small,
.value-ladder small {
  color: var(--muted);
}

.value-ladder {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-ladder span {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.mini-table {
  min-width: 520px;
}

.task-item {
  gap: 10px;
  min-height: 38px;
}

.task-item input {
  width: 18px;
  min-height: 18px;
}

.progress-item span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent-2));
}

.score-grid {
  grid-template-columns: repeat(3, 1fr);
}

.assistant-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.assistant-card,
.playbook-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.assistant-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 250px;
  padding: 20px;
}

.assistant-card p {
  color: var(--muted);
  line-height: 1.55;
}

.assistant-card.warn {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fffbeb;
}

.assistant-card.danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff8f7;
}

.assistant-card.good {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fff7e6;
}

.playbook-list {
  display: grid;
  gap: 10px;
}

.playbook-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.playbook-item span {
  display: grid;
  gap: 4px;
}

.playbook-item small {
  color: var(--muted);
}

.score-grid span {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.score-grid b {
  font-size: 2.6rem;
}

.score-grid small {
  color: var(--muted);
  font-weight: 850;
}

.hidden {
  display: none;
}

.quick-bot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
}

.bot-fab {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fff3b0);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  font-size: 1.35rem;
  font-weight: 950;
}

.bot-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: none;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.quick-bot.open .bot-panel {
  display: block;
}

.bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0b0d10, #2d2f34 58%, var(--accent-2));
}

.bot-header h3 {
  margin-bottom: 0;
}

.icon-mini {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.bot-messages,
.bot-suggestions,
.bot-form {
  padding: 14px;
}

.bot-messages {
  display: grid;
  max-height: 250px;
  gap: 10px;
  overflow: auto;
  background: #f8fafc;
}

.bot-message {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
}

.bot-message.bot {
  color: var(--ink);
  background: #fff;
}

.bot-message.user {
  justify-self: end;
  color: #fff;
  background: var(--accent);
}

.bot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bot-suggestions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.bot-whatsapp {
  display: block;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--accent);
  font-weight: 950;
  text-align: center;
}

@media (max-width: 1060px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .workspace {
    margin-left: 0;
  }

  .nav-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .dashboard-grid.wide-left,
  .hero-panel,
  .comparison-controls,
  .palacios-ledger-form,
  .install-status-grid,
  .install-platforms,
  .danger-zone,
  .public-topbar,
  .pricing-grid,
  .plan-interface-grid,
  .plan-portal-grid,
  .public-feature-grid,
  .public-access,
  .login-screen,
  .assistant-grid,
  .accounting-kpis,
  .value-ladder {
    grid-template-columns: 1fr;
  }

  .public-topbar {
    position: static;
  }

  .public-nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .inventory-form,
  .invoice-row,
  .quote-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    background: #f8fafc;
  }

  .login-screen,
  .public-site,
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .summary-grid,
  .form-grid,
  .palacios-ledger-form,
  .inventory-form,
  .invoice-row,
  .quote-items-header,
  .quote-item-row,
  .purchase-steps,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .purchase-steps i {
    display: none;
  }

  .top-actions,
  .hero-actions,
  .public-tabs {
    justify-content: stretch;
  }

  .primary-button,
  .secondary-button,
  .contact-button,
  .install-button,
  .quick-button {
    width: 100%;
    text-align: center;
  }

  .public-hero,
  .purchase-steps,
  .pricing-grid,
  .plan-workspaces,
  .plan-portals,
  .public-feature-grid,
  .public-access {
    width: 100%;
  }

  .plan-app-shell,
  .plan-kpis {
    grid-template-columns: 1fr;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .login-copy h1 {
    margin-top: 34px;
    font-size: 3.1rem;
  }

  .balanced-title {
    font-size: 2.55rem;
    line-height: 1;
  }

  .quick-bot {
    right: 14px;
    bottom: 14px;
  }

  .bot-form {
    grid-template-columns: 1fr;
  }

  .cloud-checks {
    grid-template-columns: 1fr 1fr;
  }
}
