/* =========================================================
   DataPete – style.css
   ========================================================= */

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

:root {
  --bg:             #ffffff;
  --bg-alt:         #f8fafc;
  --text:           #1a1a1a;
  --text-muted:     #64748b;
  --text-body:      #374151;
  --accent:         #2563eb;
  --accent-dark:    #1d4ed8;
  --header-bg:      #1e2a3a;
  --border:         #e2e8f0;
  --shadow:         0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --font:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:           "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max-w:          1100px;
  --header-h:       124px;
  --radius:         10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden; /* estää sivun tason sivuttaisskrollin */
}

/* Globaali turvaverkko pre/code-elementeille */
pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

code {
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Sections --- */
.section {
  padding: 72px 0;
}

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

.section-compact {
  padding: 48px 0;
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.section-intro {
  color: var(--text-body);
  max-width: 760px;
  margin-bottom: 36px;
  line-height: 1.75;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-cta {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  font-size: 1.05rem;
  padding: 15px 36px;
}

.btn-cta:hover {
  background: #e8f0fe;
  color: var(--accent-dark);
}

.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  height: var(--header-h);
  box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  width: 190px;
  height: auto;
  display: block;
}

/* Navigaatio */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.main-nav a:hover {
  background: #f1f5f9;
  color: var(--accent);
  text-decoration: none;
}

/* Hamburger-painike (piilotettu desktopilla) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3f56 100%);
  color: #fff;
  padding: 80px 0 72px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================================
   TIETOA
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-body);
  line-height: 1.78;
  margin-bottom: 16px;
}

.about-image img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Kuva tekstin alla */
.about-portrait {
  margin: 0 0 24px;
}

.about-portrait img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* =========================================================
   PALVELULISTA (kaksipalstainen tarkistusmerkit)
   ========================================================= */
.service-list-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
}

.service-list-cols li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-body);
  font-size: 0.97rem;
  line-height: 1.5;
}

.service-list-cols li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 0.05em;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.service-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}

.service-group h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.service-group .service-list-cols {
  grid-template-columns: 1fr;
  gap: 9px;
}

.service-area {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-top: 8px;
  line-height: 1.6;
}

.service-limitation {
  background: #eff6ff;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--text-body);
  margin-top: 24px;
  line-height: 1.65;
}

/* =========================================================
   PALVELUKORTIT
   ========================================================= */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card ul {
  flex: 1;
  margin-bottom: 24px;
}

.service-card-note {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-detail-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.card-detail-link:hover {
  color: var(--accent-dark);
}

.service-card ul li {
  padding: 5px 0 5px 22px;
  position: relative;
  color: var(--text-body);
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-price {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.service-price strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.service-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* =========================================================
   PALVELUPAKETIT
   ========================================================= */
.package-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.package-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.package-card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.package-card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}

.package-card-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.55;
}

.package-card-content ul li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 4px 0 4px 16px;
  position: relative;
}

.package-card-content ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.package-card-content .card-detail-link {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
  align-self: center;
  text-align: center;
}

.package-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

.package-divider {
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}

.package-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  line-height: 1.1;
}

.package-card-note {
  min-height: 2.4em;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

.package-section-note {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* =========================================================
   CTA-OSIO
   ========================================================= */
.cta-section {
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3f56 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.cta-lead {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* =========================================================
   ETÄTUKI
   ========================================================= */
.remote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.remote-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.remote-block p {
  color: var(--text-body);
  line-height: 1.72;
  margin-bottom: 12px;
}

.steps-list {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 8px;
}

.steps-list li {
  color: var(--text-body);
  padding: 5px 0;
  font-size: 0.95rem;
}

.notice {
  background: #eff6ff;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: var(--text) !important;
}

/* Latausosio */
.download-section {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.download-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  min-width: 0; /* estää grid-konttia venymästä sisällön mukaan */
}

.download-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;    /* kriittinen: grid-solun pitää voida kutistua */
  overflow: hidden; /* varmistaa ettei sisältö vuoda ulos */
}

.download-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.download-card .btn {
  margin: 6px 0 18px;
}

.download-card .btn-outline {
  color: var(--accent);
  border-color: var(--accent);
}

.download-card .btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.checksum-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.checksum-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;

  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 160px 10px 12px;
  color: var(--text);
  line-height: 1.5;
}

.checksum-scroll code {
  display: inline-block;
  min-width: max-content;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-family: var(--mono);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}

.copy-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--font);
  line-height: 1.5;
}

.copy-btn:hover {
  background: var(--accent-dark);
}

.copy-btn.copied {
  background: #16a34a;
}

.hash-cmd {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hash-cmd code {
  font-family: var(--mono);
  background: #e8ecf0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text);
}

.hash-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================================
   UKK
   ========================================================= */
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item a {
  color: var(--accent);
}

/* =========================================================
   PALVELUSIVUT
   ========================================================= */
.service-hero {
  padding: 72px 0 52px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.service-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.service-hero-inner > *,
.service-layout > *,
.service-main,
.service-summary,
.service-sidebar,
.service-sidebar-card {
  min-width: 0;
}

.service-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-breadcrumbs a {
  color: var(--text-muted);
}

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

.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.service-hero p {
  color: var(--text-body);
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 720px;
}

.service-hero h1,
.service-hero p,
.service-main h2,
.service-main p,
.service-main li,
.service-summary li,
.service-sidebar-card p,
.service-sidebar-card li {
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.service-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.service-summary h2 {
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.service-summary ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-body);
}

.service-summary li {
  position: relative;
  padding-left: 18px;
}

.service-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.service-main,
.service-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-main {
  padding: 30px;
}

.service-main h2 {
  margin-top: 30px;
}

.service-main h2:first-child {
  margin-top: 0;
}

.service-main p,
.service-main li {
  color: var(--text-body);
  line-height: 1.75;
}

.service-main ul,
.service-main ol {
  margin-top: 14px;
  margin-bottom: 8px;
  padding-left: 20px;
}

.service-main ul {
  list-style: disc;
}

.service-main ol {
  list-style: decimal;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-sidebar-card {
  padding: 24px;
}

.service-sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.service-sidebar-card p,
.service-sidebar-card li {
  color: var(--text-body);
  line-height: 1.72;
}

.service-sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-price-tag {
  display: inline-flex;
  align-items: center;
  background: #eaf2ff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.related-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.related-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.related-card p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* =========================================================
   YHTEYSTIEDOT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-width: 0;
}

.contact-info p {
  margin-bottom: 10px;
  line-height: 1.65;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

.contact-info strong {
  color: var(--text);
}

.contact-info a {
  color: var(--text-body);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-detail {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.contact-detail span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail a,
.contact-detail p {
  font-weight: 700;
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

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

.contact-map {
  margin-top: 28px;
}

.contact-grid .contact-map {
  margin-top: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.contact-form-link {
  margin-top: 12px;
  color: #fff;
}

.contact-info .contact-form-link:hover,
.contact-info .contact-form-link:focus-visible,
.contact-info .contact-form-link:visited {
  color: #fff;
  text-decoration: none;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-width: 0;
}

.contact-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-form-intro {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field label,
.form-field legend {
  font-weight: 600;
  color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-wide,
.form-honeypot {
  grid-column: 1 / -1;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 107, 246, 0.12);
}

.contact-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-radio-group label,
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-body);
  line-height: 1.5;
}

.contact-radio-group input,
.form-consent input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.contact-form .btn {
  align-self: flex-start;
  justify-self: flex-start;
}

.form-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  scroll-margin-top: 140px;
}

@media (max-width: 700px) {
  .form-message {
    scroll-margin-top: 170px;
  }
}

.form-success {
  background: #e8f5ee;
  border: 1px solid #2f7d4f;
  color: #14532d;
}

.form-error {
  background: #fff1f2;
  border: 1px solid #be123c;
  color: #7f1d1d;
}

.form-submit-success {
  background: #2f7d4f;
  border-color: #2f7d4f;
  cursor: default;
}

.form-privacy {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.form-privacy a {
  color: var(--accent);
}

.form-privacy a:hover {
  color: var(--accent-dark);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.footer-logo-img {
  display: block;
  width: 110px;
  height: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact li {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact li svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-social a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social svg {
  flex-shrink: 0;
}

.footer-legal-copy {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* =========================================================
   ALASIVUT (tietosuoja, evästeet, palveluehdot)
   ========================================================= */
.legal-page {
  padding: 56px 0 72px;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.legal-content ul li {
  padding-left: 18px;
  position: relative;
}

.legal-content ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* =========================================================
   DESKTOP: näytä desktop-painikkeet, piilota mobiilipainikkeet
   ========================================================= */
@media (min-width: 769px) {
  .btn-phone {
    display: none;
  }
  .desktop-only {
    display: inline-block;
  }
  .mobile-only {
    display: none;
  }
}

/* =========================================================
   TABLET (max 960px)
   ========================================================= */
@media (max-width: 960px) {
  .service-hero-inner,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-hero-inner {
    gap: 28px;
    align-items: start;
  }

  .service-layout {
    gap: 28px;
  }

  .service-sidebar {
    position: static;
  }

  .service-groups {
    grid-template-columns: 1fr;
  }

  .related-services {
    grid-template-columns: 1fr;
  }

  .package-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr 220px;
    gap: 36px;
  }

  .about-image img {
    max-width: 220px;
    height: 220px;
  }
}

/* =========================================================
   MOBIILI (max 768px)
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --header-h: 88px;
  }

  .section {
    padding: 48px 0;
  }

  .section-compact {
    padding: 36px 0;
  }

  /* Header */
  .site-header {
    overflow: visible;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .menu-toggle {
    display: flex;
  }

  .logo-img {
    width: 135px;
  }

  /* Hero */
  .hero {
    padding: 48px 0 44px;
  }

  .service-hero {
    padding: 46px 0 38px;
  }

  .service-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  .service-summary,
  .service-main,
  .service-sidebar-card {
    padding: 22px;
  }

  .service-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-hero-actions .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .service-hero p,
  .service-main h2,
  .service-main p,
  .service-main li {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-phone {
    display: inline-block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-block !important;
  }

  /* Tietoa */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .about-image img {
    max-width: 180px;
    height: 180px;
  }

  .about-text p + p {
    margin-top: 16px;
  }

  .about-text .about-intro {
    margin-bottom: 0;
  }

  .about-text > .about-portrait {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  /* Palvelulista */
  .service-list-cols {
    grid-template-columns: 1fr;
    gap: 0.75rem 0;
  }

  .related-services {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-card {
    padding: 20px;
  }

  .related-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .related-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Palvelukortit */
  .service-cards {
    grid-template-columns: 1fr;
  }

  /* Paketit */
  .package-cards {
    grid-template-columns: 1fr;
  }

  /* Etätuki */
  .remote-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  /* Yhteystiedot */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-form-card {
    margin-top: 0;
    padding: 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-map iframe {
    height: 260px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal {
    gap: 12px;
  }
}

/* ===== KARTTAPLACEHOLDER ===== */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 260px;
  background: var(--bg-alt, #f5f5f5);
  border-radius: 10px;
  border: 1px solid var(--border, #e0e0e0);
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}

.map-placeholder p {
  margin: 0;
}

.map-consent-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent, #1a56db);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.map-consent-btn:hover {
  background: var(--accent-dark, #1343b5);
}

/* ===== EVÄSTEBANNERI ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 100vw;
  overflow-x: hidden;
  z-index: 9999;
  background: #fff;
  border-top: 2px solid var(--accent, #1a56db);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 20px 16px;
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cookie-banner-text {
  flex: 1 1 280px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cookie-banner-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

.cookie-link {
  color: var(--accent, #1a56db);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.cookie-banner-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #1a56db);
  cursor: pointer;
  flex: 0 0 auto;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.cookie-btn-primary {
  background: var(--accent, #1a56db);
  color: #fff;
}

.cookie-btn-primary:hover {
  background: var(--accent-dark, #1343b5);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--accent, #1a56db);
  border: 2px solid var(--accent, #1a56db);
}

.cookie-btn-secondary:hover {
  background: var(--accent, #1a56db);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
