/* Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #475569;
  --accent-color: #f59e0b;
  --text-color: #1e293b;
  --light-text: #64748b;
  --background: #f8fafc;
  --white: #fffff5;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-radius: 0.375rem;

  --background-active: rgba(76, 175, 80, 0.1);
  --background-warning: rgba(244, 67, 54, 0.1);
  --background-inactive: rgba(102, 102, 102, 0.1);

  --status-active: #2E7D32;
  --status-suspended: #C62828;
  --status-expired: #C62828;
  --status-revoked: #C62828;
  --status-inactive: #555;
  --status-pending: #1976D2;
}

/* Base styles */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: normal 1em/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--white);
}

/* Text */
h1, h2, h3, h4, p {
  margin: 0;
  padding: 0;
}
h1, .alpha {
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}
h1 {
  margin: .75rem 0;
}
h2 {
  margin: .5rem 0;
}
h2, .beta {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
}
h3 {
  margin-bottom: .5rem;
}
h3, legend, .gamma {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 400;
}
p {
  margin-bottom: 1.5em;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover,
a:active,
a:focus {
  text-decoration: underline;
}
small, .small {
  font-size: .875rem;
  line-height: 1.7143;
}
abbr {
  text-decoration: none;
}
address {
  font-style: normal;
}
blockquote,
.quote {
  margin: 0 0 1.5rem 0;
  padding: .75rem;
  border-left: .25em solid var(--primary-color);
}
cite {
  font-style: normal;
}

/* Lists */
ol, ul, dl {
  margin: 0 0 1.5rem 0;
  padding: 0;
}
ul {
  list-style-type: none;
}
dd {
  margin: 0;
}

/* Layout */
header {
  display: flex;
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo a {
  text-decoration: none;
  color: var(--text-color);
}

.logo a:hover {
  color: var(--primary-color);
}

.logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

/* Ensure SVG colors display correctly */
.logo svg path {
  stroke: var(--primary-color);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
header .search {
  width: 100%;
  order: 1;
  flex-grow: 1;
}
header .search-form {
  margin-left: 0;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin-left: 1.5rem;
}
nav li:first-child {
  margin-left: 0;
}

main {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem;
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  color: var(--light-text);
  margin-top: 4rem;
}

/* Messages */
.messages {
  /*
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  */
}

.message {
  padding: 0.75rem 1rem;
  /*
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  animation: message-fade 2s ease-in-out forwards;
  */
}

@keyframes message-fade {
  0% {
    opacity: 0.8;
    transform: translateY(0%);
  }
  90% {
    opacity: 0.8;
    transform: translateY(0%);
  }
  100% {
    opacity: 0;
    transform: translateY(-25%);
  }
}

.message-success {
  background-color: #dcfce7;
  /*border: 1px solid #bbf7d0;*/
  color: #166534;
}

.message-error {
  background-color: #fef2f2;
  /*border: 1px solid #fecaca;*/
  color: #dc2626;
}

.message-warning {
  background-color: #fefce8;
  /*border: 1px solid #fef08a;*/
  color: #ca8a04;
}

.message-info {
  background-color: #eff6ff;
  /*border: 1px solid #bfdbfe;*/
  color: #1d4ed8;
}

/* Hero section */
.hero {
  padding: 4rem 0;
  /*border-bottom: 1px solid var(--border-color);*/
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tagline {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.hero-cta {
  margin-top: 2rem;
}

.user-greeting {
  margin-top: 1rem;
  color: var(--light-text);
}

.login-options {
  margin: 1rem 0;
  color: var(--light-text);
}

.login {
  text-align: center;
}

.social-login {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.05);
  text-decoration: none;
}

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:nth-child(1) {
  transition-delay: 0.1s;
}

.feature:nth-child(2) {
  transition-delay: 0.3s;
}

.feature:nth-child(3) {
  transition-delay: 0.5s;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--light-text);
}

/* How it works section */
.how-it-works {
  margin-bottom: 4rem;
  text-align: center;
}

.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  position: relative;
  padding: 2rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--light-text);
}

/* CTA section */
.cta-section {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 4rem;
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--light-text);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stats {
  flex-wrap: wrap;
  gap: 1rem;
}

.stats-block {
  flex: 1;
  flex-direction: column;
}

.stats-heading {
  order: 2;
}

.stats-value {
  order: 1;
}

/* Pricing list */
.pricing-tiers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
}

/* Carrier list */
.carrier-list {
  list-style: none;
  padding: 0;
}

.carrier-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.carrier-list-item a {
  padding: .5em 0;
  color: var(--text-color);
}

.carrier-list-item .small {
  color: var(--light-text);
  line-height: 1;
}

/* Carrier detail */
.license-list-item {
  margin-bottom: .5rem;
}

.license-heading {
  line-height: 1;
  order: 2;
}

.license-value {
  order: 1;
}

/* Breadcrumb */
.breadcrumb-item {
  display: inline-block;
  margin: 0;
}

.breadcrumb-item::after {
  content: "\00B7";
  margin-left: .25rem;
}

.breadcrumb-item:last-child::after {
  content: "";
}

/* Spark dots */
.sparkdot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.sparkdot-active {
  background-color: var(--status-active);
}

.sparkdot-inactive {
  background-color: var(--status-inactive);
}

.sparkdot-expired {
  background-color: var(--status-expired);
}

.sparkdot-suspended {
  background-color: var(--status-suspended);
}

.sparkdot-revoked {
  background-color: var(--status-revoked);
}

/* Status pills */
.status-pill {
  display: inline-block;
  margin-right: .25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  /*
  letter-spacing: 0.025em;
  text-transform: uppercase;
  */
  border-radius: var(--border-radius);
}

.status-active {
  background-color: var(--background-active);
  color: var(--status-active);
}

.status-expired,
.status-suspended,
.status-revoked,
.status-pending {
  background-color: var(--background-warning);
  color: var(--status-expired);
}

.status-inactive {
  background-color: var(--background-inactive);
  color: var(--status-inactive);
}

/* Search bar */
.search-form,
.filter-form {
  max-width: 37.5rem;
  margin-left: -.5rem;
  border: 1px solid var(--border-color);
  border-radius: .25rem;
  padding: 0.5rem 0.25rem;
}

.hero-content .search-form {
  margin: 0 auto;
}

.search-form:focus-within,
.filter-form:focus-within {
  border-color: var(--primary-color);
  transition: border-color .2s ease-in-out;
}

.search-input,
.filter-input {
  font-size: 1rem;
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
}

.icon-label {
  display: flex;
  margin-right: .2rem;
}

.search-icon,
.filter-icon {
  height: 1rem;
  width: 1rem;
  fill: #888;
  flex-shrink: 0;
}

.input-compact {
  max-width: 25rem;
}

/* Utility classes */
.no-margin {
  margin-bottom: 0;
}

.half-margin {
  margin-bottom: .75rem;
}

.full-margin {
  margin-bottom: 1.5rem;
}

.nowrap {
  white-space: nowrap;
}

.is-hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-center{
  align-items: center;
}

.center {
  text-align: center;
}

.weak {
  color: var(--light-text);
}

.squeeze {
  line-height: 1;
}

/* Responsive adjustments */
header {
  flex-direction: column;
  gap: .75rem;
}

@media (min-width: 30rem) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (min-width: 46rem) {
  header {
    height: 4.46875rem;
  }
  header .search {
    width: auto;
    max-width: 37.5rem;
    order: 0;
  }
}
@media (min-width: 95rem) {
  header .search {
    max-width: 68rem;
  }
  .logged-out .search {
    max-width: 80.425rem;
  }
}

@media (max-width: 48rem) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .features, .steps {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 2rem;
  }
}