/* Shared Learmond Systems styles. Loaded from the root static/css platform route. */
:root {
  --rackstack-primary: #4b0082;
  --rackstack-secondary: #6a0dad;
  --rackstack-accent: #00d2ff;
  --systems-dark: #1a1a1a;
  --systems-light: #f4f4f9;
}

body.systems-shell {
  background-color: var(--systems-light);
  color: var(--systems-dark);
}

.systems-shell main {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

.systems-home-page {
  margin-top: -19.9px;
}

.systems-page-header {
  text-align: left;
  padding: 0 20px;
}

.systems-page-content {
  width: 100%;
  margin: 32px 0 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.systems-page-list {
  display: inline-block;
  text-align: left;
  margin: 12px auto 0;
  padding-left: 20px;
}

.systems-shell .home-hero {
  background: linear-gradient(135deg, var(--systems-dark) 0%, #2c3e50 100%);
  color: white;
  padding: 60px 20px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.systems-shell .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(106, 13, 173, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.systems-shell .hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.systems-shell .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.03rem;
  color: var(--rackstack-accent);
}

.systems-shell .home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.systems-shell .home-hero p {
  font-size: 1.25rem;
  color: #cbd5e0;
  margin: 0 auto 40px;
  max-width: 700px;
}

.systems-shell .cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.systems-shell .btn-rackstack,
.systems-shell .pod-link,
.systems-shell .btn-rack-action {
  background: var(--rackstack-primary);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
}

.systems-shell .btn-rackstack {
  padding: 14px 32px;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 20px rgba(75, 0, 130, 0.3);
}

.systems-shell .btn-rackstack:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(75, 0, 130, 0.4);
  background: var(--rackstack-secondary);
}

.systems-shell .features-section {
  padding: 13px 40px 12px;
  max-width: 1600px;
  margin: 0 auto;
}

.systems-shell .section-title {
  text-align: center;
  margin-bottom: 24px;
}

.systems-shell .section-title h2 {
  margin-top: 0;
  font-weight: 800;
  margin-bottom: 12px;
}

.systems-shell .section-title p {
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto;
}

.systems-shell .feature-grid,
.systems-shell .tier-grid {
  display: grid;
  gap: 24px;
}

.systems-shell .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.systems-shell .feature-card,
.systems-shell .webdesign-includes,
.systems-shell .tier-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s, transform 0.3s;
  text-align: left;
}

.systems-shell .feature-card {
  padding: 12px 40px 40px;
}

.systems-shell .feature-card p {
  line-height: 1.6;
}

.systems-shell .feature-card:hover,
.systems-shell .webdesign-includes:hover {
  border-color: var(--rackstack-primary);
  transform: translateY(-5px);
}

.systems-shell .feature-icon {
  font-size: 2rem;
  color: var(--rackstack-primary);
  margin-bottom: 20px;
}

.systems-shell .webdesign-layout {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 40px;
}

.systems-shell .service-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
}

.systems-shell .service-stack .feature-card {
  flex: 1;
}

.systems-shell .webdesign-includes {
  padding: 12px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.systems-shell .feature-card h3,
.systems-shell .webdesign-includes h3 {
  margin-top: 0;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--systems-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.systems-shell .capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.systems-shell .capabilities-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.6;
}

.systems-shell .pod-link {
  margin-top: 10px;
  display: inline-block;
  text-align: center;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.systems-shell .feature-card .pod-link {
  cursor: pointer;
}

.systems-shell .pod-link:hover {
  opacity: 0.86;
}

.systems-shell .app-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 32px !important;
  padding: 0 20px !important;
  margin-top: 16px !important;
}

.systems-shell .app-module {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  width: 100% !important;
}

.systems-shell .app-icon {
  width: 160px !important;
  height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #fff !important;
  border-radius: 32px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.systems-shell .app-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.systems-shell .source-app-icon {
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.systems-shell .source-app-icon img {
  border-radius: 32px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.systems-shell .app-buttons {
  display: flex !important;
  gap: 15px !important;
  margin-top: 12px !important;
}

.systems-shell .app-link {
  font-size: 32px !important;
  color: #333 !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  text-decoration: none !important;
}

.systems-shell .app-link:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.systems-shell .app-link-ios {
  color: #000 !important;
}

.systems-shell .app-link-android {
  color: #3ddc84 !important;
}

.systems-shell .rackstack-container {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.systems-shell .tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.systems-shell .tier-card {
  padding: 32px;
  border-radius: 16px;
}

.systems-shell .tier-card:hover {
  transform: translateY(-5px);
}

.systems-shell .tier-card.featured {
  border-color: var(--rackstack-primary);
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
}

.systems-shell .tier-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 20px 0;
}

.systems-shell .btn-rack-action {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.systems-shell .contact-container {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.systems-shell .contact-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.systems-shell .contact-form-panel {
  flex: 1.2;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-sizing: border-box;
}

.systems-shell .support-form-row {
  display: flex;
  gap: 20px;
}

.systems-shell .support-form-col {
  flex: 1;
}

.systems-shell .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.systems-shell .form-submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--rackstack-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.systems-shell .contact-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 20000;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
}

.systems-shell .contact-popup-overlay.active {
  display: grid;
  align-items: center;
  justify-items: center;
}

.systems-shell .contact-popup {
  background: #fff;
  border-radius: 18px;
  padding: 64px 48px;
  max-width: 1200px;
  width: calc(100% - 48px);
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  animation: systems-contact-popup-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  margin-top: 5vh;
}

.systems-shell #contact-popup-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
  text-align: left;
}

.systems-shell .contact-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  z-index: 10;
}

.systems-shell .contact-popup-close:hover {
  color: #333;
}

.systems-shell .cpop-info-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.systems-shell .cpop-info-col h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
}

.systems-shell .cpop-info-col .cpop-sub {
  margin: 0 0 24px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.5;
}

.systems-shell .cpop-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.systems-shell .cpop-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

.systems-shell .cpop-bullet-icon {
  color: var(--rackstack-primary);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.systems-shell .cpop-bullet-text {
  flex: 1;
}

.systems-shell .cpop-info-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.systems-shell .cpop-footer-note {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 10px;
  line-height: 1.4;
}

.systems-shell .cpop-footer-email {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

.systems-shell .cpop-footer-email a {
  color: var(--rackstack-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.systems-shell .cpop-footer-email a:hover {
  color: var(--rackstack-secondary);
  text-decoration: underline;
}

.systems-shell .contact-popup form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.systems-shell .cpop-row {
  display: flex;
  gap: 16px;
}

.systems-shell .cpop-row .cpop-field {
  flex: 1;
}

.systems-shell .cpop-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.systems-shell .cpop-field input,
.systems-shell .cpop-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.systems-shell .cpop-field input:focus,
.systems-shell .cpop-field textarea:focus {
  outline: none;
  border-color: #4b0082;
  box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.1);
  background: #fff;
}

.systems-shell .cpop-field textarea {
  resize: vertical;
  min-height: 340px;
}

.systems-shell .cpop-submit {
  width: 100%;
  padding: 13px;
  background: #4b0082;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}

.systems-shell .cpop-submit:hover {
  background: #6a0dad;
  transform: translateY(-1px);
}

.systems-shell .cpop-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.systems-shell .cpop-ok {
  text-align: center;
  padding: 18px 0;
}

.systems-shell .cpop-ok-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.systems-shell .cpop-ok h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.systems-shell .cpop-ok p {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.88rem;
}

.systems-shell .cpop-ok button {
  padding: 10px 28px;
  background: #4b0082;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

@keyframes systems-contact-popup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.systems-legal-page {
  padding: 0 20px;
  margin: -24px 0 0;
}

.systems-legal-content {
  text-align: center;
}

.systems-legal-content p,
.systems-legal-content li {
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .systems-shell .app-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1000px) {
  .systems-shell .webdesign-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 990px) {
  .systems-shell .app-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 18px !important;
  }

  .systems-shell .app-icon {
    width: min(200px, 100%) !important;
    height: min(200px, 100%) !important;
  }

  .systems-shell .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .systems-shell .contact-info {
    margin-right: 0 !important;
  }

  .systems-shell .contact-info,
  .systems-shell .contact-form-panel {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
  }

  .systems-shell #contact-popup-body {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .systems-shell .contact-popup {
    max-width: 550px;
    padding: 32px 24px;
    margin: 32px auto;
  }

  .systems-shell .cpop-info-col {
    height: auto;
  }

  .systems-shell .cpop-info-footer {
    margin-top: 32px;
  }

  .systems-shell .cpop-info-col h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .systems-shell .cpop-info-col .cpop-sub {
    margin-bottom: 16px;
    font-size: 0.95rem;
  }

  .systems-shell .cpop-field textarea {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .systems-shell .home-hero p {
    padding: 0 20px;
    font-size: 1.15rem;
  }
}

@media (max-width: 600px) {
  .systems-shell .app-grid {
    grid-template-columns: 1fr !important;
  }

  .systems-shell .app-icon {
    width: min(240px, 76vw) !important;
    height: min(240px, 76vw) !important;
  }

  .systems-shell .support-form-row {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .systems-page-content,
  .systems-legal-page {
    text-align: center;
  }

  .systems-page-list {
    display: inline-block;
    text-align: left;
    padding-left: 22px;
  }

  .systems-shell .contact-popup-overlay {
    padding: 16px;
  }

  .systems-shell .contact-popup {
    padding: 24px 18px 20px;
    border-radius: 14px;
    width: calc(100% - 24px);
    max-width: 320px;
    margin: 16px auto;
  }

  .systems-shell .cpop-row {
    flex-direction: column;
    gap: 14px;
  }

  .systems-shell .contact-info,
  .systems-shell .contact-form-panel {
    padding: 24px 20px;
    max-width: 350px;
  }
}
