/* Framtidsplugg – Premium SaaS with Swedish yellow-blue */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f0f7ff;
  --bg-card: #ffffff;
  --text: #0c1e3d;
  --text-muted: #4a5a75;
  --blue: #1e40af;
  --blue-dark: #1e3a8a;
  --blue-light: #dbeafe;
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --yellow-light: #fef9c3;
  --border: #e2e8f0;
  --shadow: 0 12px 40px -12px rgba(30, 64, 175, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-muted); }
.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.logo span { color: var(--blue); }
nav a { margin-left: 1.8rem; font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
nav a:hover { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: all 0.18s;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: #1e3a8a; }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline { background: white; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }

/* Hero */
.hero { padding: 5rem 0 5.5rem; background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; align-items: center; }
.badge { display: inline-block; background: var(--yellow-light); color: #854d0e; font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; letter-spacing: 0.02em; }
.hero h1 { margin-bottom: 1.1rem; color: var(--text); }
.hero-lead { font-size: 1.18rem; margin-bottom: 1.8rem; max-width: 540px; }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { width: 100%; display: block; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.8rem; }
.feature-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { margin: 0.7rem 0 0.45rem; color: var(--text); }
.icon { width: 44px; height: 44px; background: var(--blue-light); color: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.8rem; }
.price-card {
  background: white; border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem 1.7rem; position: relative; transition: 0.2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price-card.popular::before {
  content: "Mest populär"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #1e3a8a; font-size: 0.75rem; font-weight: 800;
  padding: 0.3rem 0.9rem; border-radius: 999px; letter-spacing: 0.03em;
}
.price { font-size: 2.6rem; font-weight: 800; margin: 0.9rem 0; color: var(--blue); }
.price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* Form */
.form-container {
  background: white; border: 1px solid var(--border); border-radius: 18px;
  padding: 2.2rem; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.92rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fafafa;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.checkbox-group label, .radio-group label { font-weight: 500; font-size: 0.92rem; display: flex; align-items: center; gap: 0.4rem; }
.form-nav { display: flex; justify-content: space-between; margin-top: 1.8rem; gap: 1rem; }
.progress { height: 7px; background: #e2e8f0; border-radius: 99px; margin-bottom: 1.6rem; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--yellow)); width: 0%; transition: width 0.35s ease; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.15rem 0; }
.faq-item h3 { font-size: 1.12rem; margin-bottom: 0.45rem; color: var(--text); }

/* Footer */
footer { background: #0c1e3d; color: #94a3b8; padding: 3.5rem 0 2.2rem; }
footer a { color: #cbd5e1; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }


/* Improvements */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.step { text-align: center; }
.step-num { width: 42px; height: 42px; background: var(--blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 0.7rem; font-size: 1.1rem; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.testimonial { background: white; padding: 1.4rem; border-radius: 14px; border: 1px solid var(--border); }
.testimonial p { font-style: italic; margin-bottom: 0.8rem; }
.testimonial .author { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.trust-bar { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1.5rem 0; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.trust-bar span { display: flex; align-items: center; gap: 0.4rem; }
.includes { list-style: none; margin: 0.8rem 0 1rem; }
.includes li { padding: 0.25rem 0; font-size: 0.92rem; }
.includes li:before { content: "✓ "; color: var(--blue); font-weight: 700; }
.what-next { background: var(--blue-light); padding: 1.5rem; border-radius: 14px; margin-top: 1.5rem; text-align: left; }
@media (max-width: 900px) {
  .steps, .testimonials { grid-template-columns: 1fr; }
  .trust-bar { gap: 1rem; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav { display: none; }
  .hero { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .btn-group, .form-nav { flex-direction: column; }
}
@media (max-width: 600px) {
  .btn-lg { width: 100%; }
  .price-card.popular::before { position: static; display: inline-block; margin-bottom: 0.8rem; transform: none; }
}
/* Round 2 improvements */
.mobile-menu { display: none; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.comp-card { background: white; padding: 1.5rem; border-radius: 14px; border: 1px solid var(--border); }
.comp-card.good { border-color: var(--blue); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.result { text-align: center; padding: 1.2rem; background: white; border-radius: 12px; border: 1px solid var(--border); }
.result strong { display: block; font-size: 1.8rem; color: var(--blue); margin-bottom: 0.3rem; }
.help-text { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--border); padding: 0.8rem; text-align: center; z-index: 40; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
@media (max-width: 900px) {
  .hamburger { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); }
  nav.open { display: flex; }
  nav a { margin: 0.6rem 0; }
  .comparison, .results-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}

@media (max-width: 900px) {
  .container > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}


/* Form validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-group.error label { color: #dc2626; }
.error-msg {
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: none;
}
.form-group.error .error-msg { display: block; }
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #16a34a;
}
.field-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Design polish */
.section { padding: 6rem 0; }
.feature-card, .price-card, .testimonial, .comp-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover, .price-card:hover { transform: translateY(-6px); }
h2 { margin-bottom: 0.5rem; }
.form-container { padding: 2.4rem; }
.form-group label { font-size: 0.95rem; }
.btn { letter-spacing: 0.01em; }
.hero { padding: 5.5rem 0 6rem; }


/* Modern form redesign */
.form-container {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 20px 60px -20px rgba(30, 64, 175, 0.18);
  max-width: 680px;
  margin: 0 auto;
}
.progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e40af, #facc15);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.form-step h3 {
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
  color: #0c1e3d;
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: #1e3a8a;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #f9fafb;
  transition: all 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e40af;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; }
.checkbox-group label {
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #374151;
}
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}
.form-nav .btn { min-width: 140px; }
.step-indicator {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-weight: 500;
}
@media (max-width: 600px) {
  .form-container { padding: 1.8rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
}

/* Youthful design touches */
:root { --blue: #2563eb; --blue-dark: #1d4ed8; --yellow: #fbbf24; }
.hero { background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%); }
.badge { background: #fef3c7; color: #92400e; }
.btn-primary { background: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }
.feature-card { border-radius: 16px; }



/* Professional design refinement */
:root {
  --blue: #1e40af;
  --blue-dark: #1e3a8a;
  --blue-light: #eff6ff;
  --yellow: #d97706;
  --yellow-light: #fef3c7;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
}
body { font-size: 16px; letter-spacing: -0.01em; }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 700; }
.hero { background: #ffffff; padding: 5rem 0 5.5rem; }
.badge { background: #eff6ff; color: #1e40af; font-weight: 600; }
.btn-primary { background: #1e40af; border-radius: 8px; }
.btn-primary:hover { background: #1e3a8a; }
.btn-yellow { background: #d97706; color: white; }
.btn-yellow:hover { background: #b45309; }
.feature-card, .price-card, .testimonial, .comp-card, .form-container {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.feature-card:hover, .price-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); }
.price-card.popular { border-color: #1e40af; }
.price-card.popular::before { background: #1e40af; color: white; }
.section-soft { background: #f9fafb; }
footer { background: #111827; }
.form-container { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); }

/* Subtle professional animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate { opacity: 0; animation: fadeInUp 0.7s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.feature-card, .price-card, .testimonial, .comp-card, .week-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover, .price-card:hover, .testimonial:hover {
  transform: translateY(-6px);
}
.btn {
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.hero-image img {
  transition: transform 0.4s ease;
}
.hero-image:hover img {
  transform: scale(1.02);
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.feature-card.scroll-animate { transition-delay: 0.05s; }
.price-card.scroll-animate { transition-delay: 0.08s; }

/* === Tillägg okt 2026: formulär, samtycke, nya sidor (samma stil) === */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto; padding: 0; margin: 0.2rem 0 0; flex: none;
  accent-color: var(--blue); box-shadow: none;
}
.consent-label { display: flex !important; align-items: flex-start; gap: 0.55rem; font-weight: 500 !important; color: var(--text) !important; line-height: 1.45; }
.consent-label a, .form-note a, .legal a, .contact-card a { color: var(--blue); }
.radio-group label { cursor: pointer; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.9rem; }
.form-error { color: #dc2626; font-weight: 600; margin-top: 1rem; text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quick-form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.quick-form-grid .form-container { max-width: none; margin: 0; }
.check-list { list-style: none; margin: 1rem 0; }
.check-list li { padding: 0.3rem 0; color: var(--text-muted); }
.check-list li:before { content: "✓ "; color: var(--blue); font-weight: 700; }
.result strong.small { font-size: 1.15rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
.contact-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; text-align: center; }
.contact-card strong { display: block; color: var(--text); margin-bottom: 0.3rem; }
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 0.6rem; }
.legal ul { margin: 0.4rem 0 0.8rem 1.3rem; }
.page-hero { padding: 4.5rem 0 3rem; background: #ffffff; }
@media (max-width: 900px) {
  .quick-form-grid, .contact-grid { grid-template-columns: 1fr; }
}
