/* ===========================
   UTDELNINGSSMART — Premium CSS
   Light theme, Emerald accent
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --e: #059669;
  --e-light: #d1fae5;
  --e-dark: #047857;
  --e-glow: rgba(5, 150, 105, 0.15);
  --w: #ffffff;
  --b1: #f8fafc;
  --b2: #f1f5f9;
  --b3: #e2e8f0;
  --t1: #0f172a;
  --t2: #334155;
  --t3: #64748b;
  --max-w: 1200px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--b1);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--b3);
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--t1);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--t2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--e); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--t1);
  color: white;
}

.btn-primary:hover {
  background: var(--e);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--e-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--b3);
}

.btn-secondary:hover {
  border-color: var(--e);
  color: var(--e);
  background: var(--e-light);
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--e-light);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--e-dark);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  color: var(--e);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--e);
  border-radius: 2px;
  opacity: 0.3;
}

.hero p {
  font-size: 1.2rem;
  color: var(--t3);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--t3);
}

/* ===== CALC BANNER ===== */
.calc-banner {
  background: var(--t1);
  border-radius: var(--radius);
  padding: 48px;
  margin: -40px 0 80px;
  position: relative;
  z-index: 10;
  color: white;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.calc-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.calc-input-group input {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
  transition: background 0.2s;
}

.calc-input-group input:focus {
  background: rgba(255,255,255,0.15);
}

.calc-input-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.calc-result {
  background: var(--e);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  text-align: center;
}

.calc-result .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.calc-result .amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.calc-result .sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--t3);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--w);
  border: 1px solid var(--b2);
  border-radius: calc(var(--radius) - 4px);
  padding: 40px 32px;
  transition: all 0.3s ease;
  cursor: default;
}

.feature-card:hover {
  border-color: var(--e);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--e-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--t3);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 100px 0;
  background: var(--w);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(to right, var(--e), var(--b3), var(--b3));
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--e-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--e);
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--t3);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== SNOWBALL SECTION ===== */
.snowball {
  padding: 100px 0;
}

.snowball-graph {
  background: var(--w);
  border-radius: var(--radius);
  border: 1px solid var(--b2);
  padding: 40px;
  margin-top: 48px;
}

.snowball-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  margin-top: 24px;
}

.snowball-bar {
  flex: 1;
  background: linear-gradient(to top, var(--e), #34d399);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s ease;
  position: relative;
  min-width: 24px;
}

.snowball-bar span {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}

.snowball-bar-label {
  font-size: 0.75rem;
  color: var(--t3);
  text-align: center;
  margin-top: 8px;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--w);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--b1);
  border: 1px solid var(--b2);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  background: var(--t1);
  color: white;
  border-color: var(--t1);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured .price { color: white; }
.pricing-card.featured .price-sub { color: rgba(255,255,255,0.6); }
.pricing-card.featured .feature-item { color: rgba(255,255,255,0.8); }
.pricing-card.featured .feature-item::before { color: var(--e); }

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--e);
  color: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t1);
  margin: 20px 0 4px;
}

.price-sub {
  font-size: 0.9rem;
  color: var(--t3);
  margin-bottom: 24px;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.pricing-card .desc {
  font-size: 0.9rem;
  color: var(--t3);
  margin: 8px 0 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.feature-item {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--t2);
}

.feature-item::before {
  content: '✓';
  color: var(--e);
  font-weight: 700;
  flex-shrink: 0;
}

.featured .feature-item::before { color: #34d399; }

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card.featured .btn-primary {
  background: var(--e);
}

.pricing-card.featured .btn-primary:hover {
  background: var(--e-dark);
}

.pricing-roi {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--t3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-roi strong {
  color: var(--t1);
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
}

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: var(--w);
  border: 1px solid var(--b2);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--e);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.faq-arrow {
  color: var(--t3);
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--t3);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  margin-top: 16px;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  text-align: center;
  background: var(--t1);
  color: white;
}

.cta h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

.cta .btn-primary {
  background: var(--e);
}

.cta .btn-primary:hover {
  background: var(--e-dark);
  box-shadow: 0 12px 32px rgba(5,150,105,0.35);
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0;
  background: var(--b1);
  border-top: 1px solid var(--b2);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--t3);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--t3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--e);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .nav-links { display: none; }

  .calc-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    margin: -20px 0 60px;
  }

  .calc-result .amount { font-size: 1.8rem; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before { display: none; }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .cta h2 { font-size: 1.8rem; }

  footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
