/* -- Home page -- */
body.home-page { background: var(--bg); }

main.home {
  max-width: 680px;
  margin: 72px auto 0;
  padding: 0 24px;
  text-align: center;
}

.home-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.2);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

main.home h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

main.home p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.home-cta {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 12px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
  text-align: left;
}

.home-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-icon { font-size: 22px; margin-bottom: 4px; }
.home-feature strong { font-size: 14px; font-weight: 600; }
.home-feature span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* -- Pricing section (home page) -- */
.pricing-section {
  width: 100%;
  max-width: 680px;
  margin-top: 56px;
}

.pricing-section h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.pricing-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card--highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.pricing-card--full {
  grid-column: 1 / -1;
}

.pricing-card-team-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .pricing-card-team-body { grid-template-columns: 1fr; }
}

.pricing-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pricing-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.pricing-card--highlight .pricing-card-name { color: var(--brand); }

.pricing-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.pricing-card-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.pricing-features li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features li .feat-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.pricing-seats {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pricing-seats-header {
  display: grid;
  grid-template-columns: 2fr 3fr 4fr;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.pricing-seats-row {
  display: grid;
  grid-template-columns: 2fr 3fr 4fr;
  gap: 4px;
  font-size: 12px;
  color: var(--text);
}

.pricing-seats-row span:last-child { color: var(--muted); }

.pricing-year1 {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* Contact form section */
.contact-section {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 0 20px;
  text-align: center;
}
.contact-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-section > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.contact-form {
  text-align: left;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.contact-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.contact-group input,
.contact-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
}
.contact-group input:focus,
.contact-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.contact-group textarea { resize: vertical; }
.contact-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.contact-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
}
@media (max-width: 500px) {
  .contact-row { grid-template-columns: 1fr; }
}

/* Sidebar alert badge */
.sidebar-badge--alert {
  background: #dc2626;
  color: #fff;
}

/* Inbox primary-small button */
.btn-primary-small {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary-small:hover { background: #1d4ed8; }

.home-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 48px 24px 32px;
  font-size: 12px;
  color: var(--muted);
}

.home-footer a {
  color: var(--muted);
  text-decoration: none;
}

.home-footer a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  main.home h1 { font-size: 34px; }
  .home-features { grid-template-columns: 1fr; }
}


/* ── Prisstruktur 2.0 ─────────────────────────────────────────────────── */
.pricing-try { text-align: center; font-size: 14px; color: var(--muted); margin: -6px 0 26px; }
.pricing-permonth { font-size: 12px; color: var(--muted); margin: -6px 0 14px; }
.pricing-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pricing-badge--value { background: #16a34a; }
.pricing-footnote { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }


/* ── Så funkar det ────────────────────────────────────────────────────── */
.how-section { margin: 56px 0 8px; text-align: center; }
.how-section h2 { font-size: 22px; margin-bottom: 24px; }
.how-steps { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.how-step {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}
.how-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.how-step strong { display: block; font-size: 14px; margin-bottom: 4px; }
.how-step span { font-size: 13px; color: var(--muted); }
.home-cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.home-cta-secondary { font-size: 14px; }


.pricing-card--light { border-style: dashed; }
.pricing-card .pricing-permonth { font-size: 12px !important; }
.pricing-card-price--sm { font-size: 16px !important; align-self: center; }

/* ── Priskort: balans & vänsterställning (2026-07-11) ─────────────────── */
.pricing-section h2 { font-size: 26px; }
.pricing-card { position: relative; text-align: left; }
.pricing-card-header { flex-direction: column; align-items: flex-start; gap: 0; }
.pricing-card-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pricing-card--highlight .pricing-card-name { color: var(--brand); }
.pricing-card-price { font-size: 26px; font-weight: 800; margin-top: 2px; }
.pricing-card-price--sm { font-size: 17px !important; align-self: flex-start; margin-top: 6px; }
.pricing-card .pricing-permonth { margin: 2px 0 16px; white-space: nowrap; }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  margin: 0;
}
.pricing-card .pricing-year1 {
  margin-top: auto;
  padding-top: 14px;
  font-style: normal;
  font-size: 12.5px;
  text-align: left;
}
.pricing-card--full .pricing-year1 { margin-top: 10px; }
.pricing-card-team-body { text-align: left; }
@media (max-width: 1000px) {
  .pricing-card .pricing-permonth { white-space: normal; }
}

/* ── Hero 2.0: pitch + kortmockup ─────────────────────────────────────── */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-pitch { max-width: 520px; text-align: left; }
.hero-pitch .home-badge { margin-left: 0; }
.hero-pitch h1 { text-align: left; }
.hero-pitch p { text-align: left; }
.hero-pitch .home-cta-row { justify-content: flex-start; }
.hero-mock {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-card {
  width: 250px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  box-shadow: 0 22px 50px -18px rgba(5, 46, 22, 0.35);
  border: 1px solid #dcfce7;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 38%);
  text-align: center;
  transform: rotate(2.5deg);
  transition: transform 0.25s;
}
.hero-mock:hover .hero-card { transform: rotate(0deg) scale(1.02); }
@media (prefers-reduced-motion: no-preference) {
  .hero-card { animation: heroFloat 5s ease-in-out infinite; }
  @keyframes heroFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
}
.hero-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.hero-card-name { font-size: 17px; font-weight: 700; color: #052e16; }
.hero-card-title { font-size: 12px; color: #16a34a; margin: 2px 0 16px; }
.hero-card-btn {
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
}
.hero-card-rows { display: flex; gap: 6px; justify-content: center; }
.hero-card-rows span {
  font-size: 11px;
  color: #052e16;
  background: #dcfce7;
  border-radius: 999px;
  padding: 5px 12px;
}
.hero-tap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 860px) {
  .home-hero { gap: 32px; }
  .hero-pitch { text-align: center; }
  .hero-pitch h1, .hero-pitch p { text-align: center; }
  .hero-pitch .home-cta-row { justify-content: center; }
  .hero-card { transform: rotate(0); }
}
