:root {
  --blue-900: #0e4a75;
  --blue-700: #1b6ca8;
  --blue-600: #2b8bc9;
  --blue-100: #e8f4fc;
  --blue-50: #f3f9fd;
  --orange: #f97316;
  --orange-dark: #e05f08;
  --ink: #16324a;
  --muted: #5b7388;
  --line: #d5e4f0;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(14, 74, 117, 0.12);
  --radius: 16px;
  --font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, #d9eefc 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, #ffe8d4 0%, transparent 50%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 40%, #f4f9fc 100%);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 251, 254, 0.88);
  border-bottom: 1px solid rgba(213, 228, 240, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue-900);
}

.brand-text {
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(27, 108, 168, 0.15));
}

.hero-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--blue-900);
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* Form card */
.check-form {
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 100%);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
  animation: rise 0.6s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 0.95rem 0.85rem 2.55rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s ease;
}

.input-wrap input:focus {
  box-shadow: inset 0 0 0 2px #ffb27a;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-600);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.input-with-clip input {
  padding-right: 2.75rem;
}

.btn-clip {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-clip:hover {
  background: #ffd8b5;
  color: var(--orange-dark);
}

.btn-clip.copied {
  background: #d1fae5;
  color: #047857;
}

.btn-clip-all {
  width: auto;
  height: auto;
  padding: 0.45rem 0.75rem;
  gap: 0.4rem;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hasil-lokasi {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hasil-lokasi-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.weight-wrap {
  max-width: 180px;
}

.weight-wrap input {
  padding-right: 2.6rem;
}

.suffix {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(14, 74, 117, 0.18);
  max-height: 220px;
  overflow: auto;
}

.suggest li button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
}

.suggest li button:hover,
.suggest li button[aria-selected="true"] {
  background: var(--blue-100);
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  background: var(--orange);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error {
  margin: 0;
  color: #ffe0c8;
  font-size: 0.85rem;
  text-align: center;
}

.value-strip {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.value-strip li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.value-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid;
  place-items: center;
}

/* Results */
.results-section {
  padding: 0.5rem 0 3rem;
}

.results-section[hidden] {
  display: none !important;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  color: var(--blue-900);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.results-list {
  display: grid;
  gap: 0.75rem;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: rise 0.35s ease both;
}

.result-row:nth-child(1) {
  border-color: #ffd0a8;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.result-name {
  font-weight: 600;
  color: var(--ink);
}

.result-price {
  font-weight: 700;
  color: var(--blue-700);
  white-space: nowrap;
}

.results-empty {
  text-align: center;
  color: var(--muted);
}

/* How it works */
.how-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, transparent, var(--blue-50) 30%, var(--blue-50) 70%, transparent);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.how-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.how-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 16px;
  background: var(--blue-100);
  display: grid;
  place-items: center;
}

.how-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--blue-900);
}

.how-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Couriers */
.couriers-section {
  padding: 2.5rem 0 4rem;
}

.courier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.courier-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 72px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.courier-badge:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand .brand-text {
  color: var(--white);
}

.footer-copy {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.site-footer a:hover {
  color: var(--white);
}

.socials {
  display: flex;
  gap: 0.55rem;
}

.socials a {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .courier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .results-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: var(--blue-100);
  }

  .header-inner {
    position: relative;
  }
}
