:root {
  --bg: #0b1220;
  --bg-light: #0f172a;
  --bg-card: #020617;

  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);

  --text-main: #f9fafb;
  --text-muted: #cbd5f5;

  --border-subtle: #1f2937;

  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.9);

  --max-width: 1080px;
}

/* Reset ja perus */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 80px; /* sticky header offset */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%),
    var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip to content */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 100;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

/* Focus-tilat */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header ja navigaatio */

header,
.site-header,
body.etatuki-page header.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 260px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-link:hover,
.brand-link:focus-visible {
  text-decoration: none;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e5e7eb, #1f2937 55%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.5),
    0 10px 25px rgba(15, 23, 42, 0.8);
}

.brand-badge-text {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #0b1120;
}

.brand-text-main {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand-text-sub {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-muted);
  opacity: 0.9;
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

nav li {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
  text-decoration: none;
}

nav a[aria-current="page"] {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border: 1px solid rgba(56, 189, 248, 0.6);
}

.nav-cta {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(56, 189, 248, 0.5);
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.nav-phone {
  font-size: 0.9rem;
  margin-left: 1.5rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.nav-phone a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.nav-phone a:hover,
.nav-phone a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

/* Layout */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1.4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0; /* osioiden rytmi hoidetaan section-margineilla */
}

/* Osioiden hengitys + ankkurien offset */

main section {
  margin: 34px 0;
  scroll-margin-top: 90px; /* ankkuri ei jää sticky-headerin alle */
}

@media (min-width: 900px) {
  main section {
    margin: 44px 0;
  }
}

/* Hero */

#hero {
  padding: 3.5rem 1.4rem 3.5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom left, rgba(248, 250, 252, 0.05), transparent 60%),
    linear-gradient(135deg, #020617, #020617 40%, #020617);
  box-shadow: var(--shadow-soft);
  margin-top: 0; /* hero on ensimmäinen, ei tarvitse yläväliä */
}

#hero .hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

#hero .hero-inner,
#hero .hero-inner h1,
#hero .hero-inner p {
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.95);
  margin-bottom: 0.8rem;
}

.hero-start-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0.4rem;
}

#hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

#hero h1 span {
  color: var(--accent);
}

/* Yleinen section-tyyli */

section {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(31, 41, 55, 0.85);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

section > h2 {
  font-size: 1.3rem;
  margin: 0 0 14px;
}

section h3 {
  margin: 22px 0 10px;
}

section > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 46rem;
  margin-bottom: 0.9rem;
}

/* Mini-sisällysluettelo */

.page-toc {
  margin-top: -0.3rem;
  margin-bottom: 1.8rem;
  padding: 1.1rem 1.2rem; /* vähän enemmän ilmaa */
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #020617, #020617);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-toc ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-toc li {
  margin: 0;
}

.page-toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.1;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.7);
  text-decoration: none;
}

/* Palvelut */

#palvelut ul {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}

#palvelut li {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 16px;
  padding: 0.9rem 0.9rem 0.85rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.88rem;
  color: var(--text-muted);
}

#palvelut li strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

/* Seniori-highlight */

.senior-highlight {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
}

.senior-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.senior-highlight ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.3rem;
}

.senior-highlight .note {
  font-size: 0.9rem;
}

/* Hinnasto */

/* UUSI (käytössä sulla nyt) */
.pricing-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

/* VANHA (jos joskus käytät muilla sivuilla) */
#hinnasto .pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  margin: 1rem 0 1.2rem;
}

.pricing-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(145deg, #020617, #020617);
  border-radius: 18px;
  padding: 1.25rem 1.15rem 1.15rem; /* hieman enemmän ilmaa */
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.95);
}

.pricing-card h3,
.pricing-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.pricing-card ul {
  list-style: none;
  margin: 0.35rem 0 0.55rem;
  padding-left: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.pricing-card ul li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.pricing-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(56, 189, 248, 0.8);
}

#hinnasto ul {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-left: 1.1rem;
}

#hinnasto li + li {
  margin-top: 0.2rem;
}

/* Palveluehdot summary */

.palveluehdot-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1rem;
}

/* Minusta */

#minusta {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.4rem;
}

#minusta p {
  font-size: 0.94rem;
  line-height: 1.55;
}

#minusta li {
  line-height: 1.55;
}

#minusta h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.minusta-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
}

.minusta-photo-wrapper,
.goalie-wrapper {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 18px;
  padding: 0.6rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

.minusta-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(148, 163, 184, 0.6);
}

.goalie-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

#minusta ul {
  margin: 0.6rem 0 1.1rem 1.2rem;
}

#minusta li + li {
  margin-top: 0.35rem;
}

/* Suositukset */

#suositukset > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 46rem;
  margin-bottom: 1.1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px; /* kasvoi, jotta ei ole tiivis */
  margin-top: 14px;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

.testimonial-card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 16px;
  padding: 20px; /* kasvoi */
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.95);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-name {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* IT-huoltomies-keikkapalautteet */
.testimonials-grid--job {
  display: grid;
  gap: 18px;
  margin-bottom: 26px; /* erottaa LinkedIn-osiosta */
}

@media (min-width: 900px) {
  .testimonials-grid--job {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 22px;
  }
}

/* Tähtiarvosanat (★★★★★) */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.rating-stars {
  font-size: 1.1rem;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--accent);
}

.rating-label {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Palaute-sektio */

.note-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* Yhteys */

#yhteys {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 44px; /* lisää ilmaa suositukset/palaute -> yhteys */
}

.contact-info {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact-highlight {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
  margin-bottom: 0.6rem;
  font-size: 0.87rem;
}

.contact-form {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.95);
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}

.contact-form h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.contact-form-intro {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.field-group {
  margin-bottom: 0.6rem;
}

.field-group label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 0.45rem 0.6rem;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.88rem;
}

.field-group textarea {
  resize: vertical;
  min-height: 110px;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: 1px solid rgba(56, 189, 248, 0.7);
  border-color: rgba(56, 189, 248, 0.7);
}

/* Honeypot piiloon visuaalisesti */

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.btn-submit:hover {
  filter: brightness(1.05);
}

/* Some-linkit */

.social-strip {
  max-width: var(--max-width);
  margin: 1.75rem auto 1.5rem;
  padding: 1.1rem 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  text-align: center;
}

.contact-social-heading {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.92);
  font-size: 0.95rem;
}

.social-icon img {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.social-icon:hover,
.social-icon:focus-visible {
  border-color: rgba(56, 189, 248, 0.8);
  color: var(--accent);
  text-decoration: none;
}

/* Tietosuoja-teksti ja footer */

.footer-privacy {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #9ca3af;
  text-align: center;
}

.footer-privacy strong {
  color: #e5e7eb;
}

.footer-privacy a {
  color: var(--accent);
  text-decoration: underline;
}

.footer-privacy a:hover,
.footer-privacy a:focus-visible {
  text-decoration: none;
}

.cookie-settings-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  text-decoration: none;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem 2rem;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
}

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.site-footer a {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

/* Evästebanneri */

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid var(--border-subtle);
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-main);
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-btn {
  min-height: 40px;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #020617;
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-btn-primary {
  background: var(--accent);
  color: #020617;
  border-color: rgba(56, 189, 248, 0.9);
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus-visible {
  background: #0ea5e9;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus-visible {
  background: rgba(15, 23, 42, 0.9);
}

/* Palautelomakkeen radio/checkbox */

.field-group input[type="radio"],
.field-group input[type="checkbox"] {
  width: auto;
  min-width: 0;
  display: inline-block;
  margin: 0;
}

.rating-row,
.consent-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.rating-row label,
.consent-options label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.rating-row input[type="radio"],
.consent-options input[type="radio"] {
  width: auto;
  min-width: 0;
  margin: 0;
}

/* Sticky header vain isoilla näytöillä */

@media (min-width: 801px) {
  header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

/* Responsiivisuus */

@media (min-width: 880px) {
  #palvelut ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobiili */

@media (max-width: 800px) {
  html {
    scroll-padding-top: 130px;
  }

  header {
    position: static;
    backdrop-filter: none;
  }

  main {
    padding-top: 1.4rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.1rem;
    gap: 0.6rem;
  }

  .brand-text-main {
    font-size: 0.9rem;
  }

  .brand-text-sub {
    font-size: 0.75rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 0.85rem;
    gap: 0.7rem;
  }

  nav a {
    padding: 0.3rem 0.7rem;
  }

  .nav-phone {
    margin-left: 0;
    font-size: 0.85rem;
  }

  #minusta,
  #yhteys {
    grid-template-columns: minmax(0, 1fr);
  }

  .minusta-side {
    align-items: center;
  }

  .minusta-photo-wrapper,
  .goalie-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .contact-form {
    max-width: 100%;
    margin-left: 0;
  }

  .page-toc ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 16px;
  }
}

/* Liikkeen rajoitus */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------
   Select / dropdown (korjattu muuttujat)
   -------------------------------------------------- */

select {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.88rem;
  outline: none;
}

select:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 0.15rem rgba(56, 189, 248, 0.25);
}

select option {
  background: #0f1722;
  color: var(--text-main);
}

/* --------------------------------------------------
   Start-steps (desktop vs mobiili)
   -------------------------------------------------- */

.start-steps {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.start-steps-mobile {
  display: none;
}

@media (max-width: 640px) {
  .start-steps-desktop {
    display: none;
  }
  .start-steps-mobile {
    display: block;
  }
}

/* Lomakekenttien mobile-fix */

@media (max-width: 640px) {
  .contact-form .field-group {
    display: block;
  }

  .contact-form .field-group label {
    display: block;
    margin-bottom: 0.35rem;
  }

  .contact-form .field-group input,
  .contact-form .field-group select,
  .contact-form .field-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --------------------------------------------------
   Chatin tilan värit + info-boksi
   -------------------------------------------------- */

#ith-chat-launcher.ith-chat-open {
  background-color: #22c55e;
}

#ith-chat-launcher.ith-chat-closed {
  background-color: #ef4444;
}

#ith-chat-launcher.ith-chat-weekend {
  background-color: #eab308;
  color: #021018;
}

#ith-chat-launcher.ith-chat-open:hover,
#ith-chat-launcher.ith-chat-closed:hover,
#ith-chat-launcher.ith-chat-weekend:hover {
  filter: brightness(1.05);
}

.ith-chat-status.ith-chat-status--info {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 12px;
  margin: 8px 0 4px;
  border-radius: 8px;
  border: 1px solid #f97373;
  background-color: #451a03;
  color: #fee2e2;
}

/* --------------------------------------------------
   IT-huoltomies chat (runko)
   -------------------------------------------------- */

.ith-chat-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  background: #00b894;
  color: #111;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ith-chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 340px;
  max-width: calc(100% - 2rem);
  background: #111;
  color: #f5f5f5;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 80vh;
  overflow-y: auto;
}

.ith-chat-panel.open {
  display: flex;
}

@media (max-width: 600px) {
  .ith-chat-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 1rem;
  }
}

.ith-chat-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.ith-chat-subtitle {
  font-size: 0.75rem;
  color: #d1d5db;
}

.ith-chat-close {
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
}

.ith-chat-close:hover,
.ith-chat-close:focus-visible {
  background: rgba(55, 65, 81, 0.9);
}

.ith-chat-body {
  display: flex;
  flex-direction: column;
  height: 320px;
}

.ith-chat-messages {
  flex: 1 1 auto;
  padding: 0.5rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  min-height: 0;
}

#ith-chat-messages {
  overflow-y: auto;
  padding-top: 0;
  border-top: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.6) #020617;
}

#ith-chat-messages::-webkit-scrollbar {
  width: 8px;
}

#ith-chat-messages::-webkit-scrollbar-track {
  background: #020617;
}

#ith-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.6);
  border-radius: 999px;
  border: 2px solid #020617;
}

#ith-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.9);
}

.ith-chat-messages:empty,
#ith-chat-messages:empty {
  display: none;
  padding: 0;
  margin: 0;
}

.ith-chat-msg {
  max-width: 90%;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  line-height: 1.3;
}

.ith-chat-msg-user {
  align-self: flex-end;
  background: #00b894;
  color: #111;
  border-bottom-right-radius: 2px;
}

.ith-chat-msg-admin {
  align-self: flex-start;
  background: #2d3436;
  border-bottom-left-radius: 2px;
}

.ith-chat-msg-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  opacity: 0.7;
}

.ith-chat-form {
  flex: 0 0 auto;
  padding: 0.6rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 0;
}

.ith-chat-userinfo {
  display: flex;
  gap: 0.4rem;
}

.ith-chat-userinfo label {
  flex: 1;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ith-chat-userinfo input,
.ith-chat-message-label textarea {
  border-radius: 8px;
  border: 1px solid #333;
  background: #181818;
  color: #f5f5f5;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
}

.ith-chat-message-label {
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ith-chat-message-label textarea {
  resize: vertical;
  min-height: 40px;
  max-height: 100px;
}

.ith-chat-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ith-chat-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #ccc;
}

.ith-chat-consent input {
  margin-top: 0.15rem;
}

.ith-chat-footer-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.ith-chat-submit {
  margin-top: 0.15rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #00b894;
  color: #111;
  cursor: pointer;
}

.ith-chat-status {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.ith-chat-status--ok {
  color: #55efc4;
}

.ith-chat-status--error {
  color: #ff7675;
}

.ith-chat-status--closed {
  background: rgba(15, 23, 42, 0.9);
}

.ith-chat-status-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.ith-chat-status-text {
  display: block;
  color: #cbd5f5;
  margin-bottom: 0.35rem;
}

.ith-chat-status-feedback {
  color: #e5e7eb;
}

.ith-chat-status-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #38bdf8;
}

.ith-chat-status-link:hover {
  text-decoration-thickness: 2px;
}

/* Isommilla näytöillä hero vähän isommaksi */

@media (min-width: 1024px) {
  #hero {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }
}
.start-here ol { margin-top: 12px; padding-left: 1.25rem; }
.start-here li + li { margin-top: 10px; }
.start-here .muted { display:block; margin-top: 6px; opacity: .85; color: var(--text-muted); }
.muted { color: var(--text-muted); opacity: .9; font-size: 0.95rem; }
.btn-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(56,189,248,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-feedback:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(56,189,248,0.35);
  filter: brightness(1.05);
}

