/* Saavutettava Suomi — Landing Page Styles
   WCAG 2.2 AA compliant. Mobile-first. Zero JavaScript.
   Fonts: Literata (headings) + Open Sans (body) from saavutettavuus.net */

/* === Custom Properties === */
:root {
  --primary: #004D40;
  --primary-light: #E0F2F1;
  --accent: #B44300;
  --bg-page: #F9FBF9;
  --bg-card: #ffffff;
  --bg-footer: #004D40;
  --text-body: #1A1A1A;
  --text-secondary: #3D5159;
  --text-on-dark: #E0F2F1;
  --text-on-accent: #ffffff;
  --border: #767676;
  --focus-ring: #1565C0;
  --color-pass: #15803d;
  --color-warning: #ca8a04;
  --color-error: #b91c1c;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --max-width: 1100px;
}

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

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
}

h1, h2, h3 {
  font-family: 'Literata', Georgia, serif;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

p { margin-bottom: 1em; }

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

a:hover {
  color: var(--accent);
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5em;
}

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

*:focus:not(:focus-visible) {
  outline: none;
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  left: -10000px;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 1rem 1.5rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--bg-card);
}

/* === Header === */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.logo:hover {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

/* === Buttons === */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: #933800;
  color: var(--text-on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-on-accent);
}

/* === Hero === */
#hero {
  padding: 5rem 0;
}

#hero h1 {
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === Process Steps === */
.process-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.process-steps li {
  counter-increment: step;
  padding: 1.5rem;
  padding-left: 4rem;
  position: relative;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.process-steps h3 {
  margin-bottom: 0.5rem;
}

.process-steps p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* === Trust Grid === */
.trust-grid {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.trust-grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.trust-grid h3 {
  margin-bottom: 0.5rem;
}

.trust-grid p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* === Pricing === */
.pricing-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
}

.price {
  font-family: 'Literata', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
}

.price-period {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.pricing-card li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5em;
}

.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-pass);
  font-weight: 700;
}

.pricing-card .btn-primary {
  align-self: stretch;
}

.pricing-featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* === Campaign Banner === */
.campaign-banner {
  background: var(--accent);
  color: var(--text-on-accent);
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.campaign-banner-title {
  display: block;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.campaign-banner-text {
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.95;
}

/* === Campaign Pricing === */
.price-original {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: 0;
}

.price-discount {
  display: inline-block;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
}

.faq-list summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-list .faq-answer {
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
}

/* === Contact === */
#yhteystiedot address {
  font-style: normal;
  font-size: 1.125rem;
}

/* === Footer === */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: var(--text-on-dark);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

/* === Responsive === */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-featured {
    transform: scale(1.03);
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}
