/* ============================================
   HASSELMUS – Neo-brutalistiskt designsystem
   Violett + honungsgul, hårda skuggor, tjocka konturer.
   Raka linjer och sparsam rörelse håller det sakligt.
   ============================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
}

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

:root {
  --primary: #6d28d9;
  --primary-bright: #8b5cf6;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --secondary: #f4effb;
  --cream: #fdfbf7;
  --dark: #241b35;
  --gray: #6e6480;
  --line: rgba(36, 27, 53, 0.12);

  --border: 2px solid var(--dark);
  --shadow-hard: 6px 6px 0 var(--dark);
  --shadow-hard-sm: 3px 3px 0 var(--dark);

  --radius: 14px;
  --radius-sm: 10px;

  --font-display: "Inter Tight", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.65;
  background-color: var(--cream);
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Typografi ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.section-header {
  max-width: 720px;
  margin: 0 0 44px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 60ch;
}

.kicker {
  display: inline-block;
  background-color: var(--accent);
  color: var(--dark);
  border: var(--border);
  border-radius: 6px;
  padding: 3px 12px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--dark);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--dark);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: white;
  color: var(--dark);
}

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

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  border-bottom: 2px solid transparent;
  z-index: 1000;
  padding: 16px 0;
  transition: background-color var(--transition), border-color var(--transition);
}

.header.is-scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--dark);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.logo::after {
  content: ".";
  color: var(--accent);
}

.navigation ul {
  display: flex;
  gap: 32px;
}

.navigation ul li a {
  position: relative;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
}

.navigation ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navigation ul li a:hover::after,
.navigation ul li a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 110px;
  background: linear-gradient(135deg, #f2ecff 0%, #fbeee0 100%);
  border-bottom: var(--border);
}

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


.hero-content h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.highlight {
  color: var(--primary);
}

.hero-content > p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 38ch;
}

.hero-content > p strong {
  color: var(--primary);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-star {
  position: absolute;
  top: 50%;
  right: 6%;
  width: clamp(110px, 14vw, 200px);
  color: var(--accent);
  filter: drop-shadow(5px 5px 0 var(--dark));
  transform: translateY(-50%);
}

.hero-star svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Vad du får ---------- */
.showcase {
  padding: 96px 0;
  background-color: var(--secondary);
  border-bottom: var(--border);
}

.showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.showcase-text h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.showcase-lead {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 44ch;
  margin-bottom: 32px;
}

.showcase-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.showcase-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.showcase-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.showcase-list dd {
  color: var(--gray);
}

.showcase-art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Priser ---------- */
.pricing {
  padding: 96px 0;
  background-color: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: white;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
}

.pricing-card + .pricing-card {
  border-left: var(--border);
}

.pricing-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}

.pricing-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gray);
  margin-left: 0.3em;
}

.pricing-price .pricing-from {
  margin-left: 0;
  margin-right: 0.3em;
}

.pricing-description {
  color: var(--gray);
  margin-bottom: 24px;
}

.pricing-features {
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}

.pricing-features li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(-45deg);
}

.pricing-card .btn {
  margin-top: auto;
}

.popular::before {
  content: "Mest populär";
  position: absolute;
  top: 18px;
  right: 18px;
  background-color: var(--accent);
  color: var(--dark);
  border: var(--border);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card.popular {
  background-color: var(--primary);
  box-shadow: 6px 6px 0 var(--accent);
}

.pricing-card.popular .pricing-name {
  color: white;
}

.pricing-card.popular .pricing-price {
  color: var(--accent);
}

.pricing-card.popular .pricing-price span {
  color: #d9c9f5;
}

.pricing-card.popular .pricing-description {
  color: #cbb8ef;
}

.pricing-card.popular .pricing-features,
.pricing-card.popular .pricing-features li {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ece4fb;
}

.pricing-card.popular .pricing-features li::before {
  border-color: var(--accent);
}

/* ---------- Kunder ---------- */
.testimonials {
  padding: 96px 0;
  background-color: var(--secondary);
  border-top: var(--border);
  border-bottom: var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding-left: 22px;
  border-left: 3px solid var(--primary);
}

.testimonial-content {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--primary);
  border: var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
}

.testimonial-author h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}

.testimonial-author p {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
  border-bottom: var(--border);
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-description {
  font-size: 1.2rem;
  max-width: 34em;
  margin: 0 auto 36px;
  color: #ede4fd;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  background-color: white;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1rem;
}

.cta-form input::placeholder {
  color: var(--gray);
}

.cta-extra {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-status:not(:empty) {
  margin-top: 20px;
  font-weight: 600;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #ede4fd;
}

.cta-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta .btn-primary {
  background-color: var(--accent);
  color: var(--dark);
}

.cta .btn-primary:hover {
  background-color: var(--accent-dark);
}

/* ---------- Footer ---------- */
.footer {
  padding: 72px 0 0;
  background-color: var(--dark);
  color: white;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 64px;
  padding-bottom: 48px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-name::after {
  content: ".";
  color: var(--accent);
}

.footer-brand p:not(.footer-name) {
  max-width: 34ch;
  color: #a99fc0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-nav a {
  color: #cfc4e4;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.footer-nav a:hover {
  color: white;
  border-bottom-color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a99fc0;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.85rem;
}

.footer-legal a {
  color: #a99fc0;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: white;
}

/* ---------- Juridiska sidor ---------- */
.legal {
  padding: 140px 0 96px;
}

.legal-content {
  max-width: 72ch;
}

.legal-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--gray);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 44px 0 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.legal-content p,
.legal-content ul,
.legal-content dl {
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.4em;
}

.legal-content li + li {
  margin-top: 4px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content dl > div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.legal-content dt {
  font-weight: 600;
}

@media (max-width: 600px) {
  .legal-content dl > div {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsivt ---------- */
@media (min-width: 1200px) {
  .hero-star {
    right: 16%;
  }
}

@media (max-width: 960px) {
  .hero-star {
    position: static;
    width: 56px;
    margin-bottom: 24px;
    transform: none;
    filter: drop-shadow(3px 3px 0 var(--dark));
  }

  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px;
  }

  .header .container {
    flex-direction: column;
    gap: 10px;
  }

  .navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
  }

  .hero {
    padding: 150px 0 96px;
  }

  .showcase,
  .pricing,
  .testimonials,
  .cta {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    box-shadow: 4px 4px 0 var(--dark);
  }

  .pricing-card + .pricing-card {
    border-left: none;
    border-top: var(--border);
  }

  .showcase-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 480px) {

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-form {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
