:root {
  --mdc-theme-primary: #3F51B5;
  --mdc-theme-secondary: #3F51B5;
  --mdc-theme-on-primary: #ffffff;
  --mdc-theme-on-secondary: #ffffff;
  --mdc-theme-surface: #ffffff;
  --mdc-theme-background: #fafafa;
  --mdc-theme-on-surface: #212121;
  --primary-dark: #303F9F;
  --primary-light: #C5CAE9;
  --bar-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mdc-theme-background);
  color: rgba(0, 0, 0, 0.87);
  font-family: Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mdc-theme-primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* App bar */
.mdc-top-app-bar { background-color: var(--mdc-theme-primary); }
.brand {
  color: #fff; text-decoration: none; font-size: 20px; font-weight: 500;
  letter-spacing: 0.15px; margin-right: 24px;
}
.brand span { font-weight: 400; opacity: 0.85; }
.top-nav { display: flex; align-items: center; flex: 1; }
.top-nav a {
  color: rgba(255, 255, 255, 0.87); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 1.25px; text-transform: uppercase;
  padding: 0 16px; height: var(--bar-h); display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.top-nav a:hover, .top-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: #fff;
}
.login-btn {
  --mdc-theme-primary: #fff;
  color: #fff; border-color: rgba(255, 255, 255, 0.7);
}
.mdc-top-app-bar__navigation-icon { display: none; }
.mdc-top-app-bar__row { max-width: 1200px; margin: 0 auto; }

/* Drawer (mobile only) */
.mdc-drawer .drawer-title { padding: 16px; font-size: 20px; font-weight: 500; color: var(--mdc-theme-primary); }
.mdc-drawer .mdc-list-item--activated { color: var(--mdc-theme-primary); }

@media (max-width: 839px) {
  .mdc-top-app-bar__navigation-icon { display: inline-flex; }
  .top-nav, .top-bar-login { display: none; }
  .mdc-top-app-bar__section--align-start { flex: 1; }
}
@media (min-width: 840px) {
  .mdc-drawer, .mdc-drawer-scrim { display: none !important; }
}

main { padding-top: var(--bar-h); }
@media (max-width: 599px) { main { padding-top: 56px; } .brand { margin-right: 0; font-size: 18px; } }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--mdc-theme-primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 72px 0 80px;
}
.hero h1 {
  font-size: 48px; line-height: 56px; font-weight: 400; margin: 0 0 16px; max-width: 760px;
}
.hero p { font-size: 20px; line-height: 32px; max-width: 640px; margin: 0 0 32px; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .mdc-button--outlined { --mdc-theme-primary: #fff; color: #fff; border-color: rgba(255,255,255,0.7); }
@media (max-width: 599px) {
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 34px; line-height: 42px; }
  .hero p { font-size: 18px; line-height: 28px; }
}

/* Disabled sales button: visible but clearly inactive, on light and indigo backgrounds */
.hero .mdc-button--raised:disabled, .cta-banner .mdc-button--raised:disabled {
  background-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8);
  box-shadow: none; cursor: not-allowed;
}
.mdc-button--raised:disabled { cursor: not-allowed; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: #fff; }
.section h2 { font-size: 34px; line-height: 40px; font-weight: 400; margin: 0 0 8px; }
.section .lead { font-size: 16px; line-height: 28px; color: rgba(0,0,0,0.6); margin: 0 0 32px; max-width: 680px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mdc-card.feature-card { padding: 24px; border-radius: 4px; }
.mdc-card.feature-card .material-icons {
  color: var(--mdc-theme-primary); background: var(--primary-light);
  border-radius: 50%; padding: 12px; font-size: 24px; margin-bottom: 16px; align-self: flex-start;
}
.feature-card h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; letter-spacing: 0.15px; }
.feature-card p { margin: 0; font-size: 16px; line-height: 24px; color: rgba(0,0,0,0.6); }
.mdc-card { display: flex; flex-direction: column; }
.mdc-card--outlined { border: 1px solid rgba(0,0,0,0.12); }
.mdc-card:not(.mdc-card--outlined) { box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--mdc-theme-primary); color: #fff; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.step p { margin: 0; line-height: 24px; color: rgba(0,0,0,0.6); }

/* CTA banner */
.cta-banner { background: var(--mdc-theme-primary); color: #fff; padding: 56px 0; text-align: center; }
.cta-banner h2 { font-size: 34px; line-height: 40px; font-weight: 400; margin: 0 0 8px; }
.cta-banner p { margin: 0 0 24px; opacity: 0.9; font-size: 18px; line-height: 28px; }

/* Footer */
.site-footer { background: #212121; color: rgba(255,255,255,0.7); padding: 32px 0; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: rgba(255,255,255,0.87); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { text-decoration: underline; }

.mdc-drawer-app-content { min-height: 100vh; overflow-x: hidden; }

/* Login page */
.login-wrap { display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 480px; padding: 32px; border-radius: 4px; }
.login-card h1 { font-size: 34px; line-height: 40px; font-weight: 400; margin: 0 0 8px; }
.login-card .lead { margin: 0 0 24px; font-size: 16px; line-height: 24px; color: rgba(0,0,0,0.6); }
.login-card .field { display: block; font-size: 14px; font-weight: 500; color: rgba(0,0,0,0.6); margin-bottom: 8px; padding: 0; }
.field-select { width: 100%; height: 56px; padding: 0 12px; font: inherit; font-size: 16px; border: 1px solid rgba(0,0,0,0.38); border-radius: 4px; background: #fff; margin-bottom: 24px; }
.field-select:focus { outline: 2px solid var(--mdc-theme-primary); border-color: transparent; }
.field-roles { border: 0; padding: 0; margin: 0 0 24px; }
.role-option { display: block; padding: 8px 0; font-size: 16px; cursor: pointer; }
.role-option input { margin-right: 12px; accent-color: var(--mdc-theme-primary); }
.login-error { color: #b00020; margin: 0 0 16px; font-size: 14px; }
.login-card .mdc-button--raised { width: 100%; height: 48px; }
