* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f8fc;
  --bg-2: #eef3fb;
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --border: rgba(16, 24, 40, 0.08);
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #0ea5e9;
  --success: #0f766e;
  --success-bg: linear-gradient(135deg, #f8fffb 0%, #f2fcff 100%);
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 24px;
  --radius-sm: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(79, 70, 229, 0.16);
  top: -40px;
  left: -60px;
}

.shape-2 {
  width: 320px;
  height: 320px;
  background: rgba(14, 165, 233, 0.12);
  bottom: -50px;
  right: -60px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 56px;
}

.hero {
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: 48px;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.hero-text {
  margin: 0;
  max-width: 760px;
  line-height: 1.75;
  font-size: 17px;
  color: #475467;
}

.layout {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.premium-result {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,251,255,0.95) 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.meta-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.badge-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.badge-light {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 24, 40, 0.06);
  color: var(--text);
}

.icon,
.field-icon,
.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}

.input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.8;
}

.field select,
.field input {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  background: rgba(255,255,255,0.94);
  color: var(--text);
  transition: 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.03);
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.38);
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.10),
    inset 0 1px 2px rgba(16, 24, 40, 0.03);
  transform: translateY(-1px);
}

.hero-total {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid rgba(79, 70, 229, 0.10);
  box-shadow: var(--shadow-soft);
}

.hero-total-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
}

.hero-total strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111827;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.result-item {
  position: relative;
  border: 1px solid #e7edf6;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.result-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,70,229,0.10), rgba(14,165,233,0.10));
  margin-bottom: 12px;
  font-size: 16px;
}

.result-item .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.result-item strong {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.summary-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;
  background: var(--success-bg);
  border: 1px solid rgba(15, 118, 110, 0.10);
}

.summary-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.summary-box p {
  margin: 0;
  line-height: 1.75;
}



.anim-target {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    box-shadow 0.35s ease;
}

.animate-in {
  animation: softPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes softPop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .hero h1 {
    font-size: 38px;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 22px 14px 34px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 15px;
  }

  .form-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero-total strong {
    font-size: 34px;
  }
}
.sources-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(249,251,255,0.96) 100%);
}

.sources-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.sources-main-link {
  margin-bottom: 18px;
}

.sources-main-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.sources-main-link a:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sources-grid a {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.95);
  border: 1px solid #e7edf6;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.sources-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

@media (max-width: 640px) {
  .sources-grid {
    grid-template-columns: 1fr;
  }
}
.sources-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(249,251,255,0.96) 100%);
  padding: 18px 22px;
}

.sources-accordion {
  width: 100%;
}

.sources-accordion summary {
  list-style: none;
}

.sources-accordion summary::-webkit-details-marker {
  display: none;
}

.sources-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.sources-summary .section-kicker {
  margin-bottom: 6px;
}

.sources-summary h2 {
  font-size: 22px;
}

.sources-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sources-accordion[open] .sources-chevron {
  transform: rotate(180deg);
}

.sources-content {
  padding-top: 16px;
}

.sources-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.sources-main-link {
  margin-bottom: 18px;
}

.sources-main-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.sources-main-link a:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sources-grid a {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.95);
  border: 1px solid #e7edf6;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.sources-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

@media (max-width: 640px) {
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .sources-summary h2 {
    font-size: 20px;
  }
}

.result-item-emphasis {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-color: rgba(79, 70, 229, 0.14);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.06);
}

.result-item-emphasis .result-icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.16), rgba(14,165,233,0.14));
}

.result-item-emphasis strong {
  color: #1d4ed8;
}