:root {
  --climap-blue: #003d79;
  --climap-blue-deep: #002952;
  --climap-blue-soft: #e8f1fa;
  --climap-text: #0f172a;
}

html {
  scroll-behavior: smooth;
}

.public-layout {
  min-height: 100vh;
  background: #f4f7fb;
}

.home-page {
  display: flex;
  flex-direction: column;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background-color: #002952;
  background-image:
    linear-gradient(105deg, rgba(0, 30, 64, 0.72) 0%, rgba(0, 45, 98, 0.55) 48%, rgba(0, 35, 78, 0.68) 100%),
    url("/images/assets/bg-forest-canopy-blue-duotone.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  scroll-margin-top: 0;
  overflow: hidden;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  margin-bottom: 0.75rem;
}

.landing-header-left {
  opacity: 0.98;
}

.landing-pertamina-logo {
  height: clamp(28px, 3.2vw, 40px);
  width: auto;
  display: block;
}

.landing-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.5vw, 3.25rem);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 0 3.5rem;
}

.landing-visual {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  display: block;
  justify-self: start;
}

.landing-copy {
  max-width: 38rem;
}

.landing-title {
  margin: 0 0 1.1rem;
  line-height: 0;
}

.landing-brand {
  width: min(100%, 520px);
  height: auto;
  display: block;
}

.landing-lead {
  line-height: 1.65;
  opacity: 0.95;
  margin: 0 0 1.35rem;
  font-size: 1rem;
  max-width: 48ch;
}

.landing-points {
  margin: 0 0 1.85rem;
  padding: 0;
  list-style: none;
  counter-reset: climap-point;
  display: grid;
  gap: 1.05rem;
  max-width: 50ch;
}

.landing-points li {
  counter-increment: climap-point;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  column-gap: 0.85rem;
  align-items: start;
}

.landing-points li::before {
  content: counter(climap-point);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--climap-blue);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.landing-point-body {
  margin: 0;
  line-height: 1.55;
  font-size: 0.96rem;
  opacity: 0.95;
}

.landing-point-body strong {
  font-weight: 800;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--climap-blue);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.65rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-cta em {
  font-style: italic;
  font-weight: 700;
}

.landing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.landing-visitor {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  background: rgba(40, 55, 75, 0.72);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.insights-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
}

.insights-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
}

.insights-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--climap-blue);
  color: #fff;
  border-radius: 999px 0 0 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  margin-right: -1.25rem;
}

.insights-section {
  margin-bottom: 2.25rem;
  scroll-margin-top: 1.5rem;
}

.insights-section h2 {
  margin: 0 0 1rem;
  color: var(--climap-text);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.insights-card,
.insights-region-card {
  background: #fff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 40, 80, 0.06);
  text-decoration: none;
  color: var(--climap-text);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.insights-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 40, 80, 0.12);
}

.insights-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--climap-blue-soft);
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  padding: 4px;
  box-sizing: border-box;
}

.link-icon-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}

.link-icon-preview {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: #e8f1fa;
  margin-top: 0.35rem;
}

.link-icon-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-icon-cell img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  background: #e8f1fa;
}

.order-actions {
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.order-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.insights-card-title {
  font-weight: 600;
  line-height: 1.35;
}

.insights-region-card {
  flex-direction: column;
  align-items: stretch;
  background: var(--climap-blue);
  color: #fff;
  grid-column: span 1;
}

.insights-region-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.insights-region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.insights-region-buttons a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.insights-region-buttons a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.insights-loading {
  display: grid;
  place-items: center;
  min-height: 40vh;
}

.insights-login-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}

.insights-login-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--climap-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  box-shadow: 0 10px 24px rgba(0, 61, 121, 0.25);
}

.insights-login-cta:hover {
  filter: brightness(1.08);
}

.home-footer {
  background: var(--climap-blue-deep);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem 2rem 2rem;
}

.home-footer-copy {
  font-size: 0.9rem;
  opacity: 0.9;
}

.home-footer-contact {
  text-align: right;
}

.home-footer-contact-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.home-footer-contact-org {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-footer-contact p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.92;
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .landing-hero {
    min-height: auto;
    padding-bottom: 1.75rem;
  }

  .landing-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0 1.5rem;
  }

  .landing-visual {
    max-width: 260px;
    margin: 0 auto;
    border-radius: 22px;
    justify-self: center;
  }

  .landing-copy {
    max-width: none;
  }

  .landing-brand {
    width: min(100%, 420px);
  }

  .landing-visitor {
    position: static;
    margin-top: 1.25rem;
    align-self: flex-start;
  }

  .insights-source {
    margin-right: 0;
    border-radius: 999px;
  }

  .home-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .home-footer-contact {
    text-align: left;
  }
}

.local-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(140deg, rgba(0, 41, 82, 0.92), rgba(0, 61, 121, 0.85)),
    #002952;
}

.local-login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  color: #0f172a;
}

.local-login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  color: #003d79;
}

.local-login-subtitle {
  margin: 0 0 1.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.local-login-form {
  display: grid;
  gap: 0.9rem;
}

.local-login-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.local-login-form input {
  border: 1px solid #c5d4e8;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.local-login-submit,
.local-login-idaman {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.local-login-submit {
  background: #003d79;
  color: #fff;
}

.local-login-idaman {
  background: #e8f1fa;
  color: #003d79;
  width: 100%;
}

.local-login-hint,
.local-login-error {
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.local-login-error {
  color: #b91c1c;
}

.local-login-hint code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.local-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

.local-login-divider::before,
.local-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.local-login-back {
  display: inline-block;
  margin-top: 1.25rem;
  color: #003d79;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
