/*
  Carbon Reporting Lite - Landing page overrides
  Based on "Hyperspace" by HTML5 UP (CCA 3.0).
*/

/* Align with app's dark/blue aesthetic */
:root {
  --crl-ink: #020617;
  --crl-ink-soft: #0b1220;
  --crl-ink-deep: #0f172a;
  --crl-accent: #3b82f6;
  --crl-accent-2: #22c55e;
  --crl-glow: rgba(59, 130, 246, 0.18);
  --crl-text: #f8fafc;
}

body {
  background: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.18), transparent 50%),
    radial-gradient(circle at 85% 5%, rgba(34, 197, 94, 0.15), transparent 42%),
    #020617;
  color: var(--crl-text);
}

/* Sidebar */
#sidebar {
  position: fixed;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(10, 16, 28, 0.94));
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

#sidebar:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.12), transparent 40%);
  opacity: 0.7;
  pointer-events: none;
}

#sidebar:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0));
  mix-blend-mode: screen;
  pointer-events: none;
}

#sidebar .inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.crl-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0 0.25rem 0;
}

.crl-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.28);
}

.crl-brand .title {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
}

.crl-brand .subtitle {
  font-size: 0.85em;
  opacity: 0.75;
}

/* Wrapper colors */
.wrapper.style1 {
  background-color: var(--crl-ink);
  background-image: radial-gradient(circle at top, rgba(59, 130, 246, 0.25), transparent 55%);
}

.wrapper.style1-alt {
  background-color: var(--crl-ink-soft);
}

.wrapper.style2 {
  background-color: var(--crl-ink-soft);
  background-image: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.14), transparent 50%);
}

.wrapper.style2-alt {
  background-color: var(--crl-ink-deep);
  background-image: radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.12), transparent 48%);
}

.wrapper.style3 {
  background-color: var(--crl-ink-deep);
  background-image: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12), transparent 52%);
}

.wrapper.style3-alt {
  background-color: #111827;
}

.wrapper.alt {
  background-color: var(--crl-ink-soft);
}

.wrapper {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.wrapper:first-of-type {
  border-top: none;
}

/* Accent underline + links */
h1.major:after {
  background-image: linear-gradient(to right, var(--crl-accent), var(--crl-accent-2)) !important;
}

a:hover {
  color: #ffffff;
}

/* Buttons */
.button.primary {
  background-color: var(--crl-accent) !important;
  color: #0b1220 !important;
  border-color: rgba(59, 130, 246, 0.85) !important;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.button.primary:hover {
  border-color: rgba(147, 197, 253, 0.95) !important;
}

.button.primary:active {
  opacity: 0.92;
}

/* Spotlight images: ensure screenshots are readable on mobile */
.spotlights > section > .image img {
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.65);
}

@media screen and (min-width: 981px) {
  .spotlights > section > .image {
    max-width: 520px;
  }

  .spotlights > section > .image img {
    max-height: 340px;
    width: 100%;
    height: 340px;
    object-fit: cover;
  }
}

/* Make spotlight screenshots feel distinct instead of one long strip */
.spotlights > section {
  margin-bottom: 2.5rem;
}

.spotlights > section:last-child {
  margin-bottom: 0;
}

.spotlights > section + section {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

@media screen and (max-width: 980px) {
  .spotlights > section > .image {
    width: 100%;
  }

  .spotlights > section > .image img {
    width: 100%;
    height: auto;
  }

  .spotlights > section {
    margin-bottom: 2rem;
  }

  .spotlights > section + section {
    padding-top: 2rem;
  }
}

@media screen and (max-width: 736px) {
  .spotlights > section > .content {
    padding-top: 1.75rem;
  }

  .spotlights > section > .image {
    max-height: 260px;
    overflow: hidden;
  }

  .spotlights > section > .image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }
}

.crl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(255, 255, 255, 0.9);
}

.crl-muted {
  opacity: 0.85;
}

.crl-page-hero {
  padding-bottom: 0;
}

.crl-page-hero h1 {
  margin-bottom: 0.35em;
}

.crl-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.crl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.7);
  border-color: rgba(59, 130, 246, 0.35);
}

.crl-card h3 {
  margin-bottom: 0.65rem;
}

.crl-card ul {
  list-style: none;
  padding-left: 0;
}

.crl-card ul:not(.actions) li:before {
  content: "• ";
  color: var(--crl-accent);
}

.crl-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.crl-pricing {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.crl-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.crl-price {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.25rem;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.crl-price strong {
  font-size: 1.3rem;
  color: #ffffff;
}

.crl-price span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.crl-contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
