/* TYYLIT & MUUTTUJAT */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --accent: #0f172a;       /* Tumma teollinen pääväri */
  --accent-blue: #2563eb;  /* Napakka sininen toimintapainikkeisiin */
  --radius: 8px;           /* Pienempi, särmikkäämpi pyöristys */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* TYPOGRAFIA & YLEISET */
h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.section {
  padding: 4.5rem 0;
  /* KORJAUS: Estetään sticky-yläpalkkia peittämästä otsikkoa ankkurilinkeistä hypättäessä */
  scroll-margin-top: 64px;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

/* PAINIKKEET */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-main {
  background-color: var(--accent-blue);
  color: #fff;
}

.btn-main:hover {
  background-color: #1d4ed8;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background-color: var(--bg-alt);
}

.btn-phone {
  background-color: var(--accent);
  color: #fff;
  white-space: nowrap;
}

.btn-phone:hover {
  opacity: 0.9;
}

.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

/* PLACEHOLDER & KUVABOKSIT */
.image-box {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: #e4e4e7;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* NAVIGAATIO & YLÄPALKKI */
.header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 12px;
  height: 12px;
  background-color: var(--accent-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* HERO */
.hero {
  padding: 4rem 0 3rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 1.25rem 0 1.75rem 0;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
}

/* HINNASTO */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border: 2px solid var(--accent);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 1.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.card-lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  flex-grow: 1;
}

.check-list li {
  font-size: 0.875rem;
  padding: 0.4rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
}

.check-list li::before {
  content: "— ";
  color: var(--accent-blue);
  font-weight: bold;
}

/* MIKSI ME */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* YHTEYSTIEDOT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.details-block {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  border-left: 2px solid var(--accent-blue);
  padding-left: 1rem;
}

.detail-row strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-row span, .detail-row a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* RESPONSII VISUUS / MOBIILI */
@media (max-width: 850px) {
  .hero-grid, .pricing-grid, .features-row, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav {
    display: none;
  }
  
  h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  
  .btn-phone {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}