:root {
  --primary: #004D40;
  --primary-soft: #E0F2F1;
  --accent: #C04D00;
  --bg-page: #F9FBF9;
  --bg-card: #ffffff;
  --text-main: #1A1A1A;
  --text-muted: #455A64;
  --border: #767676;
  --focus-ring: #2979FF;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#application {
  display: flex;
  flex-flow: column;
  position: relative;
  min-height: 100vh;

  > * {
    flex-grow: 1;
  }

  #content {
    flex-grow: 100;
  }
}

/* Navigaatio -  */
#header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Literata', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Sisällön ja navigaation välinen marginaali */
#content {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

/* Typografia - Inclusive Modernist */
h1, h2, h3, .h2 {
  font-family: 'Literata', serif;
  color: var(--primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.lead-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: 'Literata', serif;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 2.5rem;
}

/* Asettelu: Hero-osio */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 6rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  #content { margin-top: 3rem; }
}

/* Kortit ja "Kuplat" */
.bubble {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card-accent {
  border-top: 8px solid var(--primary);
}

/* "Kolme asiaa" -osio Gridillä */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Lomake ja CTA */
.form-group { margin-bottom: 1.5rem; }

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

input[type="text"] {
  width: 100%;
  padding: 1.125rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  
  &:focus {
    outline: none;
    border-color: var(--focus-ring);
  }
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  
  :hover {
    background-color: #ba4a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.2);
  }
}

/* UKK - Accordion */
.accordion {
  details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;

    p { padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
  
    summary {
      padding: 1.25rem;
      font-weight: 700;
      cursor: pointer;
      color: var(--primary);
    }
  }
}

/* Footer */
#footer {
  background: var(--primary);
  color: white;
  padding: 5rem 0;
  margin-top: 5rem;

  .logo a { color: white; }
  
  .nav-list {
    margin-top: 2rem; flex-wrap: wrap;
    
    a {
      color: #B2DFDB; font-weight: 400;
    }
  }
}

/* Saavutettavuus: Skip Link & Focus */
#goToContent a {
  position: absolute; left: -10000px;
  background: var(--accent); color: white; padding: 1rem;
}

#goToContent a:focus { position: fixed; left: 1rem; top: 1rem; z-index: 2000; }

*:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

ul.check-list { list-style: none; }
ul.check-list li {
  position: relative; padding-left: 2rem; margin-bottom: 1rem;
}

ul.check-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 900;
}

#terms {
  --p: 1rem;

  h1,
  h2,
  h3,
  p {
    margin-bottom: var(--p);
  }

  ol,
  ul {
    padding-left: 1.5rem;
    margin-bottom: var(--p);
  }
}