/* Portal Landing CSS - Extracted from index.html */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1e3a5f;
  --slate: #2d4a70;
  --teal: #0891b2;
  --teal-light: #06b6d4;
  --rust: #a16142;
  --off-white: #faf9f7;
  --warm-gray: #64748b;
  --charcoal: #0f172a;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --border-light: #e5e7eb;
  --bg-success: #d1fae5;
  --text-success: #065f46;
  --bg-accent: #e0f2fe;
  --text-accent: #0369a1;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
}

header {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--teal-light);
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
}

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

section {
  padding: 4rem 0;
}

/* Hero */
.hero {
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-visual {
  margin: 3rem auto;
  max-width: 700px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
}

.flow-node {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

a.flow-node:hover {
  transform: translateY(-2px);
}

a.flow-node:hover .flow-node-icon {
  border-color: #0891b2;
  background: linear-gradient(145deg, #cffafe 0%, #bae6fd 100%);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.18);
}

a.flow-node:hover .flow-node-label {
  color: #0e7490;
}

a.flow-node:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 3px;
}

.flow-node-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, #ecfeff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e7490;
  font-size: 0;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.flow-node-icon .ui-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.flow-node-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.flow-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding-top: 0.5rem;
}

.flow-arrow .ui-icon,
.flow-arrow .ui-icon-sm {
  width: 1.35rem;
  height: 1.35rem;
}

/* Services Grid */
.services {
  padding: 5rem 0;
  background: rgba(14, 165, 233, 0.02);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.services h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.services-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 16px;
}

.service-grid {
  display: grid;
  /* Row 1: three cards · Row 2: fourth card alone (centered) */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-grid > .service-card:nth-child(4) {
  grid-column: 1 / -1;
  max-width: min(100%, 360px);
  width: 100%;
  justify-self: center;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-grid > .service-card:nth-child(4) {
    grid-column: 1 / -1;
    max-width: min(100%, 420px);
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid > .service-card:nth-child(4) {
    grid-column: auto;
    max-width: none;
  }
}

.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a.service-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.service-card-link:hover,
a.service-card-link:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.service-card .card-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0e7490;
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  background: linear-gradient(145deg, #ecfeff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  color: #0e7490;
}

.service-card-icon .ui-icon {
  width: 1.45rem;
  height: 1.45rem;
}

/* Keep all service tiles monochrome teal (minimal stroke SVGs) */
.service-card:nth-child(1) .service-card-icon,
.service-card:nth-child(2) .service-card-icon,
.service-card:nth-child(3) .service-card-icon {
  background: linear-gradient(145deg, #ecfeff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
  color: #0e7490;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-item::before {
  content: "✓";
  color: #2ed573;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* How It Works — homepage section only (scoped so /how-it-works/ page cards are not broken) */
.how-it-works {
  padding: 5rem 0;
}

.how-it-works h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.how-it-works .how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.how-it-works .how-it-works-card {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.how-it-works-card:hover {
  border-color: #0891b2;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.12);
  transform: translateY(-2px);
}

a.how-it-works-card:hover .how-it-works-number {
  color: #0e7490;
}

a.how-it-works-card:hover .how-card-cta {
  color: #0a66c2;
}

a.how-it-works-card:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 3px;
}

.how-it-works .how-it-works-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  min-width: 40px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.how-it-works .how-it-works-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.3px;
  color: #0f172a;
}

.how-it-works .how-it-works-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 0.65rem;
}

.how-it-works .how-card-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #0891b2;
  transition: color 0.15s ease;
}

.how-it-works .how-it-works-more {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 14px;
  font-weight: 700;
}

.how-it-works .how-it-works-more a {
  color: #0a66c2;
  text-decoration: none;
}

.how-it-works .how-it-works-more a:hover {
  text-decoration: underline;
}

/* Stats */
.stats {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
  margin: 4rem 0 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.btn-primary:hover {
  background: var(--slate);
  border-color: var(--slate);
}

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

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}


/* Footer */
footer {
  background: var(--charcoal);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 12px;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-visual {
    flex-direction: column;
    gap: 1rem;
  }

  .flow-arrow {
    display: none;
  }

  section {
    padding: 2.5rem 0;
  }

  .service-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

*:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99;
  font-size: 0;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

#backToTop .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
}

#backToTop:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

#backToTop.show {
  display: flex;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--border-light);
}
