/* Senate Pages — landing, login, onboarding, error pages, evaluation-specific */

/* ========================================
   LANDING / MARKETING PAGES
   ======================================== */

/* --- Feature cards --- */
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px 36px;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* --- How it works steps --- */
.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-dark);
}

.step-item:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
  width: 48px;
  line-height: 1;
}

.step-content h3 {
  font-size: 18px;
  color: var(--text-inv);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-inv-2);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Quote cards --- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
}

.quote-text {
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.quote-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

.quote-role {
  font-size: 12px;
  color: var(--text-3);
}

/* --- Use case cards --- */
.use-case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 36px 32px;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.use-case-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.use-case-card h3 {
  margin-bottom: 10px;
}

.use-case-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Pricing cards --- */
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-2);
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

/* --- CTA section --- */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  color: var(--text-inv);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-inv-2);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 24px;
}

.login-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.login-logo .logo-rule {
  width: 3px;
  height: 22px;
  background: var(--accent);
  border-radius: var(--r-rule);
}

.login-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.login-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-3);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sso-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}

.sso-button:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--text);
}

/* ========================================
   ONBOARDING PAGE
   ======================================== */

.onboarding-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 24px;
}

.onboarding-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 48px 40px;
  width: 100%;
  max-width: 500px;
}

.onboarding-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.onboarding-card .subtitle {
  color: var(--text-2);
  margin-bottom: 28px;
}

/* ========================================
   ERROR PAGES
   ======================================== */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 400px;
}

/* ========================================
   DASHBOARD PAGES
   ======================================== */

/* --- Stats cards row --- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px 24px;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: var(--r-rule);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
}

/* --- Evaluation detail page --- */
.eval-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.eval-meta-item {
  background: var(--surface);
  border-radius: var(--r-btn);
  padding: 12px 16px;
}

.eval-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.eval-meta-value {
  font-size: 16px;
  font-weight: 700;
}

/* --- Billing usage bar --- */
.usage-bar {
  margin-top: 12px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* --- Tier cards --- */
.tier-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.tier-card.current {
  border-color: var(--accent);
}

.tier-card h3 {
  margin-bottom: 8px;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-period {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.tier-features {
  list-style: none;
  padding: 0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.tier-features li {
  font-size: 14px;
  padding: 4px 0;
  color: var(--text-2);
}

/* --- Members list --- */
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.member-item:last-child { border-bottom: none; }

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   DOCUMENTATION PAGES
   ======================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.docs-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  padding: 20px 0;
}

.docs-toc h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.docs-toc a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 16px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: all var(--t-fast);
}

.docs-toc a:hover {
  color: var(--text);
}

.docs-toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}

.docs-content {
  padding: 20px 0;
  max-width: 720px;
}

.docs-content h1 { font-size: 32px; margin-bottom: 16px; margin-top: 0; }
.docs-content h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
.docs-content h3 { font-size: 18px; margin-top: 28px; margin-bottom: 8px; }

.docs-content p {
  margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 6px;
}

.docs-content img {
  max-width: 100%;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}

@media (max-width: 820px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-toc {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}
