/* ---------- Värit: vaihda näitä, niin koko sivu muuttuu ---------- */
:root {
  --ink:      #1f1b3a;   /* teksti */
  --muted:    #5b5878;   /* himmeämpi teksti */
  --bg:       #fffdf8;   /* sivun tausta */
  --tint:     #f3efff;   /* vaalea korostetausta */

  --primary:  #6c4cf1;   /* pääväri (violetti) */
  --pink:     #ff5c8a;
  --teal:     #12c2a9;
  --yellow:   #ffc93c;
  --purple:   #8b5cf6;

  --radius:   20px;
  --shadow:   0 10px 30px rgba(31, 27, 58, 0.10);
}

/* ---------- Perusasiat ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}

.container { width: min(1100px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); }

/* ---------- Yläpalkki ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 27, 58, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-weight: 800; font-size: 1.5rem; text-decoration: none;
  color: var(--ink); letter-spacing: -0.03em;
}
.logo span { color: var(--pink); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
nav a:hover { color: var(--primary); }

/* ---------- Napit ---------- */
.btn {
  display: inline-block;
  background: var(--primary); color: #fff !important;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 18px rgba(108, 76, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(108, 76, 241, 0.45); }
.btn-small { padding: 8px 18px; font-size: 0.95rem; }
.btn-ghost {
  background: transparent; color: var(--primary) !important;
  border: 2px solid var(--primary); box-shadow: none;
}
.btn-ghost:hover { background: var(--tint); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 110px;
  background: linear-gradient(135deg, #fff4e0 0%, #ffe3ee 50%, #e9e2ff 100%);
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  background: #fff; color: var(--primary);
  padding: 6px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.highlight {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  padding: 0 4px;
}
.lead { font-size: 1.25rem; max-width: 640px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.blob { position: absolute; border-radius: 50%; z-index: 1; opacity: 0.55; }
.blob-1 { width: 320px; height: 320px; background: var(--pink);   right: -80px; top: -60px; }
.blob-2 { width: 200px; height: 200px; background: var(--teal);   right: 18%;  bottom: -70px; }
.blob-3 { width: 120px; height: 120px; background: var(--yellow); right: 6%;   bottom: 30%; }

/* ---------- Osiot ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); max-width: 640px; margin-bottom: 2em; }

/* ---------- Kortit ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 8px solid var(--primary);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-pink   { border-top-color: var(--pink); }
.card-teal   { border-top-color: var(--teal); }
.card-yellow { border-top-color: var(--yellow); }
.card-purple { border-top-color: var(--purple); }

/* ---------- Vaiheet ---------- */
.steps {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li { position: relative; padding-top: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 1.3rem; margin-bottom: 12px;
}
.steps li:nth-child(2) .step-num { background: var(--pink); }
.steps li:nth-child(3) .step-num { background: var(--teal); }
.steps p { color: var(--muted); }

/* ---------- Yhteystiedot ---------- */
.contact {
  background: linear-gradient(135deg, #e9e2ff 0%, #ffe3ee 100%);
  text-align: center;
}
.contact .section-intro { margin-left: auto; margin-right: auto; }
.contact-card {
  display: inline-block; text-align: left;
  background: #fff; border-radius: var(--radius);
  padding: 30px 40px; box-shadow: var(--shadow);
}
.contact-card p { margin-bottom: 0.4em; }
.contact-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0 !important; }
.contact-role { color: var(--muted); margin-bottom: 1em !important; }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Alapalkki ---------- */
.site-footer {
  background: var(--ink); color: #cfcbe6;
  padding: 28px 0; text-align: center; font-size: 0.95rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- Mobiili ---------- */
@media (max-width: 680px) {
  nav a:not(.btn) { display: none; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 56px 0; }
  .contact-card { padding: 24px; width: 100%; }
}
