/* Perusasetukset ja sivun rakenne */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7f6;
  color: #17211f;
  line-height: 1.6;
}

.container {
  width: min(calc(100% - 40px), 1120px);
  margin: auto;
}

.header {
  padding: 24px 0;
  font-weight: 800;
}

.hero, .section {
  padding: 65px 0;
}

.alt {
  background: #eaf2ef;
}

/* Otsikot ja tekstit */
h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  margin: 10px 0 24px;
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.2rem;
  color: #5e6f69;
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  background: #d7eee6;
  padding: 7px 11px;
  border-radius: 99px;
  font-weight: 700;
}

/* Painikkeet */
.button {
  display: inline-block;
  background: #176b57;
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 10px;
  margin-top: 10px;
}

/* Kortit ja kuvaosiot */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card, .shot {
  background: white;
  border: 1px solid #dce6e2;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(19, 53, 44, .08);
}

.card {
  padding: 25px;
}

.feature {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  align-items: center;
  margin: 55px 0;
}

.feature.reverse {
  grid-template-columns: 1.2fr .8fr;
}

.feature.reverse .copy {
  order: 2;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.centered {
  margin: auto;
}

.caption {
  text-align: center;
  color: #63716d;
  font-size: .92rem;
}

/* Kiinnostukseen ohjaava osio */
.cta {
  text-align: center;
  background: white;
  border: 1px solid #dce6e2;
  border-radius: 18px;
  padding: 42px;
  box-shadow: 0 15px 40px rgba(19, 53, 44, .08);
}

/* Yhteinen navigaatio ja etusivu */
a {
  color: #176b57;
  text-underline-offset: 4px;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b06d16;
  outline-offset: 4px;
}

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid #dce6e2;
  background: #fff;
}

.nav, .nav-links, .footer-row, .cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav, .footer-row {
  justify-content: space-between;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #17211f;
  text-decoration: none;
}

.nav-links a, .nav-link {
  font-weight: 700;
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-grid h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.06;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  font-size: .88rem;
  color: #5e6f69;
}

.hero-proof strong {
  display: block;
  color: #176b57;
}

.button {
  font: inherit;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button:hover {
  background: #105342;
}

.button.secondary {
  color: #176b57;
  border-color: #b7cec5;
  background: transparent;
}

.button.secondary:hover {
  background: #eaf2ef;
}

.hero-preview {
  padding: 18px;
  background: #dcece5;
  border-radius: 24px;
  box-shadow: 0 22px 60px #13352c14;
}

.preview-label {
  margin: 0 0 16px;
  font-size: .85rem;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #176b57;
}

.screenshot {
  margin: 0;
  min-width: 0;
}

.screenshot .shot {
  display: block;
  transition: box-shadow .2s;
}

.screenshot .shot:hover {
  box-shadow: 0 16px 40px #13352c26;
}

figcaption {
  color: #5e6f69;
  font-size: .85rem;
  margin-top: 14px;
}

figcaption span {
  display: block;
  color: #176b57;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.grid-3, .comparison, .image-grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison, .image-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card, .compare-box, .hero-card, .quote-card, .cta-box, .contact-form {
  padding: 32px;
  background: white;
  border: 1px solid #dce6e2;
  border-radius: 18px;
}

.feature-number {
  color: #176b57;
  font-weight: 700;
  font-size: .9rem;
}

.feature h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.after {
  background: #e3efe9;
  border-color: #b6cfc3;
}

.compare-box ul {
  padding-left: 20px;
}

.compare-box li + li {
  margin-top: 12px;
}

.version-grid .feature-card {
  display: flex;
  flex-direction: column;
}

.text-link {
  margin-top: auto;
  font-weight: 700;
}

.cta-box {
  text-align: center;
  padding: clamp(24px, 5vw, 60px);
}

.cta-box p {
  max-width: 680px;
  margin-inline: auto;
}

.microcopy, .form-note {
  color: #5e6f69;
  font-size: .9rem;
}

.microcopy {
  margin-top: 16px;
}

.site-footer {
  padding: 32px 0;
  color: #5e6f69;
  font-size: .9rem;
}

.metric + .metric {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dce6e2;
}

.metric-label, .metric-value {
  display: block;
}

.metric-value {
  font-weight: 700;
}

/* Yhteydenottolomake */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-field input, .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #9fb7ad;
  border-radius: 8px;
  background: #fff;
  color: #17211f;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

/* Mobiiliasettelu */
@media (max-width: 800px) {
  .grid, .feature, .feature.reverse, .hero-grid, .grid-3,
  .comparison, .image-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  .feature.reverse .copy {
    order: 0;
  }

  .hero, .section {
    padding: 44px 0;
  }

  .nav-links {
    gap: 16px;
    font-size: .9rem;
  }

  .contact-layout {
    gap: 28px;
  }

  .contact-form, .feature-card, .compare-box {
    padding: 24px;
  }
}
