:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --amber-100: #fef3c7;
  --amber-700: #b45309;
  --blue-600: #2563eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-aurora {
  background:
    radial-gradient(1200px 700px at 20% 10%, color-mix(in oklab, hsl(162, 83%, 34%) 20%, transparent) 0%, transparent 60%),
    radial-gradient(900px 520px at 85% 25%, color-mix(in oklab, hsl(168, 76%, 36%) 16%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, #fff, #f8fafc 58%, #fff);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-subtitle {
  font-size: 0.67rem;
  color: var(--gray-500);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions {
  display: none;
}

.nav-links a,
.login-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
}

.nav-links a:hover,
.login-link:hover {
  color: var(--emerald-600);
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: 0;
  color: var(--gray-600);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  font-weight: 600;
  color: var(--gray-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald-500);
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  background: var(--emerald-600);
}

.btn-secondary {
  background: #fff;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.9);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 800;
}

.text-emerald {
  color: var(--emerald-500);
}

.hero-subtitle {
  margin-top: 1.2rem;
  max-width: 54rem;
  color: var(--gray-600);
  font-size: 1.08rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--emerald-500);
}

.calculator-card,
.result-panel,
.cta-panel,
.legal-card,
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
}

.calculator-card {
  padding: 1.5rem;
}

.card-header h2,
.result-panel h2,
.cta-panel h2,
.section-header h2,
.legal-card h2 {
  margin-top: 0.75rem;
  color: var(--gray-900);
  font-size: 1.65rem;
  line-height: 1.18;
}

.card-header p,
.cta-panel p,
.section-header p,
.legal-card p,
.info-card p,
.result-empty p {
  color: var(--gray-600);
}

.calculator-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 700;
}

select,
input[type="number"] {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--gray-900);
  padding: 0 0.85rem;
  font: inherit;
  font-weight: 600;
  outline: none;
}

input[type="text"] {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--gray-900);
  padding: 0 0.85rem;
  font: inherit;
  font-weight: 600;
  outline: none;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

input::-webkit-calendar-picker-indicator {
  opacity: 0.65;
}

.autocomplete {
  position: relative;
}

.suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 15rem;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
}

.suggestions.active {
  display: block;
}

.suggestion-item {
  width: 100%;
  display: block;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: var(--emerald-50);
  outline: none;
}

.suggestion-item strong {
  display: block;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.suggestion-item span {
  display: block;
  margin-top: 0.1rem;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 600;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--gray-50);
}

.check-row input {
  margin-top: 0.25rem;
}

.check-row span {
  font-weight: 600;
}

.detected-card {
  min-height: 4.2rem;
  padding: 0.85rem;
  border: 1px solid var(--gray-100);
  border-radius: 0.65rem;
  background: #fff;
}

.detected-card strong {
  display: block;
  color: var(--gray-900);
  font-size: 0.92rem;
}

.detected-card p {
  margin-top: 0.2rem;
  color: var(--gray-600);
  font-size: 0.86rem;
}

.detected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.muted {
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 600;
}

.results-section {
  scroll-margin-top: 5rem;
  padding: 2rem 0 1rem;
}

.result-panel {
  scroll-margin-top: 5.5rem;
}

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

.result-panel,
.cta-panel {
  padding: 1.5rem;
}

.result-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 0.75rem;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-weight: 800;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.result-header p {
  color: var(--gray-600);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.metric {
  padding: 1rem;
  border-radius: 0.65rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.metric strong {
  display: block;
  color: var(--gray-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric span {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--gray-900);
}

.metric.featured {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
}

.metric.featured span {
  color: var(--emerald-700);
}

.summary-box,
.warning-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.65rem;
}

.summary-box {
  background: #fff;
  border: 1px solid var(--gray-200);
}

.summary-box p,
.warning-box p {
  color: var(--gray-700);
}

.warning-box {
  background: var(--amber-100);
  color: var(--amber-700);
}

.warning-box strong {
  display: block;
  margin-bottom: 0.2rem;
}

.warning-box a {
  color: #92400e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cta-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  background: var(--gray-900);
  color: #fff;
}

.cta-panel p {
  color: #d1d5db;
}

.cta-banner-section {
  padding: 0 0 3rem;
}

.cta-banner {
  align-items: start;
  background: #204b4b;
  position: relative;
  overflow: visible;
}

.cta-banner h2.text-emerald {
  color: var(--emerald-500);
}

.cta-banner > div {
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  width: 100%;
}

.cta-banner-image {
  display: none;
  width: min(100%, 492px);
  max-width: 100%;
  max-height: 234px;
  height: auto;
  aspect-ratio: 492 / 400;
  object-fit: contain;
  justify-self: center;
  border-radius: 0.65rem;
}

.section-label {
  color: var(--emerald-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-section,
.seo-section,
.legal-section {
  padding: 3rem 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 1.4rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-card {
  padding: 1.25rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-weight: 800;
}

.info-card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.info-card p {
  margin-top: 0.45rem;
}

.legal-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.5rem;
  align-items: center;
}

.seo-grid {
  display: grid;
  gap: 1.2rem;
}

.seo-grid article,
.faq-list {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 10px 36px rgba(17, 24, 39, 0.06);
  padding: 1.5rem;
}

.seo-grid h2 {
  margin-top: 0.65rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.seo-grid p {
  margin-top: 0.75rem;
  color: var(--gray-600);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list h2 {
  margin: 0 0 0.35rem;
}

.faq-list details {
  border: 1px solid var(--gray-100);
  border-radius: 0.65rem;
  background: var(--gray-50);
  padding: 0.9rem 1rem;
}

.faq-list summary {
  color: var(--gray-900);
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin-top: 0.55rem;
}

@media (min-width: 720px) {
  .nav-links,
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.35rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero {
    padding: 5.5rem 0 2.5rem;
  }

  .metrics-grid,
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  }

  .legal-card {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 980px) {
  .hero-container {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }

  .cta-banner {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 255px;
    padding-right: clamp(20rem, 38vw, 27rem);
  }

  .cta-banner .btn {
    width: auto;
    white-space: nowrap;
  }

  .cta-banner-image {
    display: block;
    position: absolute;
    right: 0;
    bottom: -0.4rem;
    z-index: 0;
    width: auto;
    max-width: min(46%, 492px);
    height: min(290px, calc(100% + 2.5rem));
    max-height: 290px;
  }
}
