:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --bg-dark: #0f172a;
    --sidebar-bg: #1e293b;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
}
.navbar-logo-img {
    display: inline-block;
    max-width: 120px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.navbar-organization-logo {
    background: #fff;
}
.navbar-logo-divider {
    width: 1px;
    height: 26px;
    background: #cbd5e1;
    display: inline-block;
}
.navbar-organization-name {
    max-width: 220px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .navbar-organization-name {
        max-width: 120px;
        font-size: 0.82rem;
    }
}
.sidebar {
    height: calc(100vh - 60px); /* fallback para navegadores antigos */
    height: calc(100dvh - 60px);
    width: 260px;
    background-color: var(--sidebar-bg);
    color: #f8fafc;
    position: fixed;
    padding: 1.5rem 1rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge antigo */
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    z-index: 1040;
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge moderno */
}

/* Sidebar hidden by default on mobile */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0) !important;
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}
.sidebar-link i { font-size: 1.25rem; margin-right: 0.75rem; }
.main-content { margin-left: 260px; padding: 2rem; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
}

@media (max-width: 991.98px) {
    .sidebar-overlay.show {
        display: block;
    }
}

/* Small utility & components moved from inline styles */
.stat-card { padding: 1rem; }
.stat-icon {
    width: 48px; height: 48px; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.date-badge { min-width: 60px; }
.text-truncate-max300 { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-order { width: 80px; }
.avatar-sm { width: 40px; height: 40px; }
.avatar-xs { width: 32px; height: 32px; }
.email-small { font-size: 0.75rem; }
.card-hover:hover { transform: translateY(-5px); background-color: #f8f9fa; }
.transition-all { transition: all 0.2s ease-in-out; }

/* Auth / login specific - Bootstrap Sign-in style */
body.auth-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.auth-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.auth-card .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.auth-card .form-control-lg {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.auth-card .form-control-lg:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.auth-card .btn-primary {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.auth-card .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.auth-card a {
    color: #0d6efd;
    text-decoration: none;
}

.auth-card a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 0.5rem;
    }
    
    .brand-logo {
        font-size: 1.75rem;
    }
}

/* Focus visible for accessibility */
.auth-card .form-control:focus,
.auth-card .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navigation Buttons Styling (from escala_dia.php) */
.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    border-radius: 50px !important;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn i {
    font-size: 1rem;
}

/* Loading Overlay Styling (from planejar.php) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: #6c757d;
    font-size: 0.9rem;
}

/* JSON Syntax Highlighting */
.json-display {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
.json-key {
    color: #d73a49;
    font-weight: 600;
}
.json-string {
    color: #032f62;
}
.json-number {
    color: #005cc5;
}
.json-bool {
    color: #e36209;
    font-weight: 600;
}
.json-null {
    color: #6f42c1;
    font-style: italic;
}

/* --- Planejamento em Matriz --- */
.matrix-container {
    overflow-x: auto;
    padding-bottom: 20px;
}
.matrix-table {
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
}
.matrix-table th, .matrix-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    min-width: 250px;
    vertical-align: top;
}
.matrix-table th:first-child, .matrix-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f8f9fa;
    min-width: 220px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}
.member-tag {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}
.member-tag:hover {
    background: #e9ecef;
}
.member-tag .remove-btn {
    margin-left: auto;
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    padding: 0 4px;
    font-size: 1.1rem;
    line-height: 1;
}
.warning-label {
    font-size: 0.7rem;
    display: block;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    font-weight: 500;
}
.blocked-item {
    opacity: 0.6;
    text-decoration: line-through;
    pointer-events: none;
    background-color: #fff5f5 !important;
}
.search-box {
    position: relative;
}
.search-results {
    position: fixed;
    z-index: 9999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
}
.search-result-item small {
    display: block;
    color: #6c757d;
}

/* Custom Utility Classes */
.scrollable-area-200 { max-height: 200px; overflow-y: auto; }
.scrollable-area-300 { max-height: 300px; overflow-y: auto; }
.w-150 { width: 150px; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-30 { width: 30%; }
.w-60p { width: 60%; }

.checkbox-lg { width: 1.3em; height: 1.3em; }

.icon-box-32 {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo {
    max-height: 80px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.guia-rapido-page {
    scroll-behavior: smooth;
}

.guia-feature-summary,
.guia-topic-nav,
.guia-topic-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.guia-feature-summary {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.guia-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.guia-topic-nav {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
}

.guia-topic-nav-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.guia-topic-group {
    padding: .85rem;
    border-bottom: 1px solid #eef2f7;
}

.guia-topic-group:last-child {
    border-bottom: 0;
}

.guia-topic-group-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.guia-topic-list {
    display: grid;
    gap: .35rem;
}

.guia-topic-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    padding: .55rem .7rem;
    text-align: left;
}

.guia-topic-button:hover,
.guia-topic-button.active {
    background: rgba(14, 165, 233, .1);
    border-color: rgba(14, 165, 233, .24);
    color: #0369a1;
}

.guia-topic-button-title {
    font-weight: 700;
    line-height: 1.2;
}

.guia-topic-lock {
    flex-shrink: 0;
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.guia-topic-panel {
    padding: 1.35rem;
}

.guia-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.guia-step-list {
    padding-left: 1.25rem;
}

.guia-step-list li + li {
    margin-top: 0.45rem;
}

.guia-print-list {
    color: #475569;
}

.guia-topic-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
    gap: 1.5rem;
}

.guia-screenshot-link {
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: #f8fafc;
    cursor: zoom-in;
}

.guia-screenshot-img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    object-position: top left;
}

.guia-screenshot-img-lg {
    height: 380px;
}

.guia-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.guia-screenshot-caption {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 42px;
    background: #0f172a;
    color: #fff;
    padding: .55rem .75rem;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.25;
}

.guia-screenshot-mobile {
    display: none;
}

.guia-preview-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 2rem));
}

.guia-preview-modal-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .guia-screenshot-img {
        height: 170px;
    }

    .guia-screenshot-mobile {
        display: block;
    }

    .guia-screenshot-desktop.guia-screenshot-has-mobile {
        display: none;
    }

    .guia-preview-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin-right: .5rem;
        margin-left: .5rem;
    }

    .guia-preview-modal-img {
        max-height: calc(100vh - 120px);
    }
}

@media (max-width: 991.98px) {
    .guia-layout {
        grid-template-columns: 1fr;
    }

    .guia-topic-nav {
        position: static;
        max-height: none;
    }

    .guia-panel-heading,
    .guia-topic-columns {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .guia-screenshot-img-lg {
        height: 260px;
    }
}


.custom-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content-sm {
    width: 100%;
    max-width: 450px;
}

/* Signup / Cadastro specific styles */
.signup-price-box {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem 1rem;
}

.signup-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.signup-price-original {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .95rem;
  margin-bottom: .2rem;
}

.signup-price-charged {
  color: var(--brand-strong);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.signup-price-off {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .2rem .5rem;
  background: rgba(11, 127, 186, .12);
  color: var(--brand-strong);
  margin-top: .35rem;
}

@media (max-width: 767.98px) {
  .signup-price-grid {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
}

/* --- Public Site Styles & Variables --- */
:root {
  --brand: #0b7fba;
  --brand-strong: #083344;
  --brand-warm: #f45b3f;
  --brand-gold: #f5b629;
  --ink: #16212b;
  --muted: #64748b;
  --line: #d8e3ea;
  --soft: #eef7f4;
  --paper: #ffffff;
}

.public-layout {
  color: var(--ink);
  background: #fbfdfc !important;
  letter-spacing: 0;
  padding-top: 64px;
}

.public-nav {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  padding-top: 0;
  padding-bottom: 0;
}

.public-nav .container {
  min-height: 64px;
}

.public-logo {
  height: 34px;
  width: auto;
  display: block;
}

.btn-brand {
  background: var(--brand-warm);
  border-color: var(--brand-warm);
  color: #fff;
  box-shadow: 0 12px 24px rgba(244, 91, 63, .18);
}

.btn-brand:hover {
  background: #d9472d;
  border-color: #d9472d;
  color: #fff;
}

.btn-outline-brand {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.btn-outline-brand:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.section-soft {
  background: var(--soft);
}

.eyebrow {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-section {
  padding: 5rem 0;
}

.landing-card,
.pricing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(8, 51, 68, .08);
}

.pricing-card.featured {
  border-color: var(--brand-warm);
  box-shadow: 0 22px 54px rgba(244, 91, 63, .14);
}

.public-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Landing Page Specific */
.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(88vh - 72px));
  padding: 4.5rem 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 54%, rgba(238, 247, 244, .72) 100%),
              url('../img/logos/servirplus-light.png') right 4vw center / min(640px, 50vw) auto no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(340px, .82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 5rem;
  line-height: .96;
  font-weight: 900;
  color: var(--brand-strong);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--brand-warm);
  display: block;
}

.hero-lead {
  color: #385260;
  font-size: 1.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  margin-top: 2.5rem;
  max-width: 720px;
}

.hero-metric {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
}

.hero-metric:last-child {
  border-right: 0;
}

.hero-metric strong {
  display: block;
  color: var(--brand-strong);
  font-size: 1.35rem;
}

.hero-metric span {
  color: var(--muted);
  font-size: .92rem;
}

.hero-product {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-product-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.hero-product-trigger:focus-visible {
  outline: 3px solid rgba(0, 133, 255, .45);
  outline-offset: 6px;
  border-radius: 8px;
}

.hero-product-img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin-left: auto;
  border: 1px solid rgba(11, 31, 58, .12);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(8, 31, 51, .18);
  background: #fff;
}

.product-preview-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.product-preview-modal .modal-body {
  background: #eef2f6;
  padding: 1rem;
}

.product-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(8, 31, 51, .16);
}

.workflow-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.feature-cell {
  background: #fff;
  padding: 1.35rem;
  min-height: 180px;
}

.feature-cell i {
  color: var(--brand);
  font-size: 1.7rem;
}

.feature-cell h3 {
  font-size: 1.05rem;
  margin: .85rem 0 .45rem;
  font-weight: 800;
}

.feature-cell p {
  color: var(--muted);
  margin: 0;
}

.value-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f6fbfd 58%, rgba(244, 91, 63, .08) 100%);
  border: 1px solid rgba(11, 127, 186, .18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(8, 51, 68, .12);
  padding: 1.75rem;
}

.value-banner::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(11, 127, 186, .08);
}

.value-banner-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.value-banner-kicker {
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.value-banner-title {
  color: var(--ink);
  font-weight: 900;
  margin-bottom: .25rem;
}

.value-banner-text {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 760px;
}

.value-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand-warm);
  color: #fff;
  border-radius: 999px;
  padding: .5rem .75rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(244, 91, 63, .24);
}

.value-banner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-banner-item {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(11, 127, 186, .13);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.value-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 127, 186, .1);
  color: var(--brand-strong);
  flex: 0 0 auto;
  font-size: 1.25rem;
}

.value-banner-item h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: .25rem;
}

.value-banner-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.value-banner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.35rem;
}

.value-banner-note {
  color: var(--muted);
  font-size: .92rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-step {
  border-left: 4px solid var(--brand-gold);
  padding: 1.35rem;
  background: #fff;
  border-radius: 8px;
  min-height: 190px;
}

.timeline-step:nth-child(2) {
  border-color: var(--brand);
}

.timeline-step:nth-child(3) {
  border-color: var(--brand-warm);
}

.step-number {
  color: var(--brand-strong);
  font-weight: 900;
  font-size: .9rem;
}

.plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cycle-toggle, .plans-cycle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .25rem;
  display: inline-flex;
  gap: .25rem;
  flex-wrap: wrap;
}

.cycle-toggle .btn, .plans-cycle .btn {
  border: 0;
  color: var(--muted);
  box-shadow: none;
}

.cycle-toggle .btn.active, .plans-cycle .btn.active {
  background: var(--brand-strong);
  color: #fff;
}

.cycle-toggle .btn:disabled, .plans-cycle .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.price-value {
  color: var(--brand-strong);
  font-weight: 900;
}

.price-original, .plan-price-original {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .9rem;
  margin-bottom: .1rem;
}

.price-discount, .plan-discount {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .2rem .5rem;
  background: rgba(11, 127, 186, .12);
  color: var(--brand-strong);
  margin-top: .25rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.plan-features li {
  display: flex;
  gap: .45rem;
  margin-bottom: .45rem;
}

.plan-features i {
  color: var(--brand);
}

.quote-band {
  background: var(--brand-strong);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: auto -12% -45% auto;
  width: 520px;
  height: 520px;
  background: url('../img/logos/servirplus-bw.png') center / contain no-repeat;
  opacity: .05;
}

.quote-band p {
  color: rgba(255, 255, 255, .84);
}

.landing-section-heading {
  max-width: 720px;
}

.landing-gold {
  color: var(--brand-gold);
}

.landing-logo-cta {
  width: min(360px, 80vw);
  height: auto;
}

.landing-final-copy {
  max-width: 620px;
}

.final-cta {
  background: linear-gradient(90deg, rgba(11, 127, 186, .08), rgba(244, 91, 63, .08)), #fff;
}

.servir-install-prompt {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10020;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
  padding: .65rem .85rem .85rem;
}

.servir-install-prompt[hidden] {
  display: none !important;
}

.servir-install-prompt__handle {
  width: 42px;
  height: 4px;
  margin: 0 auto .7rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.servir-install-prompt__content {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
}

.servir-install-prompt__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(14, 165, 233, .12);
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.servir-install-prompt__copy h2 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
}

.servir-install-prompt__copy p {
  margin: 0;
  color: #475569;
  font-size: .9rem;
  line-height: 1.35;
}

.servir-install-prompt__steps {
  margin: .65rem 0 0;
  padding-left: 1.15rem;
  color: #475569;
  font-size: .86rem;
  line-height: 1.35;
}

.servir-install-prompt__steps li + li {
  margin-top: .25rem;
}

.servir-install-prompt__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: .85rem;
}

.servir-install-prompt__actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .servir-install-prompt {
    left: auto;
    max-width: 420px;
  }
}

/* Planos Page Specific */
.plan-price {
  color: var(--brand-strong);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.comparison-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(8, 51, 68, .08);
  overflow: hidden;
}

.comparison-table {
  min-width: 760px;
  margin: 0;
}

.comparison-table th {
  background: #f7fbfa;
  color: var(--brand-strong);
  font-size: .95rem;
  padding: 1rem;
  vertical-align: middle;
}

.comparison-table td {
  padding: 1rem;
  vertical-align: middle;
  color: #314452;
}

.comparison-table .feature-name {
  color: var(--ink);
  font-weight: 800;
  width: 220px;
}

.comparison-table .plan-head {
  min-width: 135px;
  text-align: center;
}

.comparison-table .plan-featured {
  color: var(--brand-warm);
}

.comparison-table .check {
  color: var(--brand);
  font-size: 1.2rem;
}

.comparison-table .dash {
  color: #94a3b8;
}

.escala-dia-ministerio-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.escala-dia-ministerio-toggle .toggle-icon {
  transition: transform 0.18s ease;
}

.escala-dia-ministerio-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
}

.escala-dia-ministerio-row.is-collapsed {
  display: none;
}

.escala-dia-ministerio-row > td:first-child {
  display: none;
}

@media (max-width: 991.98px) {
  .landing-hero {
    min-height: auto;
    padding: 4rem 0;
    background-size: 720px auto;
    background-position: right -340px top 2rem;
  }
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 760px; }
  .hero-product-img { width: min(100%, 780px); margin: 0 auto; }
  .hero-title { font-size: 4rem; }
  .feature-row, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-banner-head { flex-direction: column; }
  .value-banner-grid { grid-template-columns: 1fr; }
  .plan-strip { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575.98px) {
  .public-logo { height: 28px; }
  .landing-section { padding: 3.25rem 0; }
  .landing-hero { padding: 2.5rem 0 2rem; background-position: right -460px top 1rem; }
  .hero-title { font-size: 2.75rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
  .hero-metric { padding: .75rem .55rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .hero-metric:last-child { border-right: 0; }
  .hero-metric strong { font-size: 1.05rem; }
  .hero-metric span { font-size: .78rem; line-height: 1.25; display: block; }
  .hero-product { max-width: 390px; margin: 0 auto; }
  .product-preview-modal .modal-dialog { margin: .5rem; }
  .product-preview-modal .modal-body { padding: .75rem; }
  .feature-row, .timeline { grid-template-columns: 1fr; }
}

