/* ==========================================================
   Aident – design tokens + komponentit
   ========================================================== */

@font-face {
  font-family: "Tasa Orbiter";
  src: url("../assets/fonts/tasa-orbiter-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tasa Orbiter";
  src: url("../assets/fonts/tasa-orbiter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette */
  --primary-50: #E7FAF5;
  --primary-400: #358F8C;
  --primary-600: #268070;
  --primary-700: #1A5F51;
  --primary-900: #2E4629;
  --white: #FFFFFF;
  --neutral-0: #F9F9F1;
  --neutral-50: #EEF3EA;
  --neutral-200: #D0DAC6;
  --neutral-300: #AFBCAD;
  --neutral-400: #87978E;
  --neutral-600: #4F5E5D;
  --neutral-900: #172126;
  --success: #137738; --success-bg: #E6F4EA;
  --warning: #955E00; --warning-bg: #FFF3E6;
  --error: #B63B35;   --error-bg: #FFF2F0;
  --info: #2A739F;    --info-bg: #ECF7FF;

  /* Semantic */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-disabled: var(--neutral-400);
  --text-on-brand: var(--white);
  --text-link: var(--primary-700);
  --bg-page: var(--neutral-0);
  --bg-surface: var(--white);
  --bg-subtle: var(--neutral-50);
  --bg-brand: var(--primary-600);
  --bg-brand-subtle: var(--primary-50);
  --border-default: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-focus: var(--primary-600);
  --action-primary: var(--primary-600);
  --action-primary-hover: var(--primary-700);
  --action-primary-disabled: var(--neutral-200);

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-32: 128px;

  /* Radius */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px;
  --radius-2xl: 24px; --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(23, 33, 38, .06);
  --shadow-md: 0 4px 12px rgba(23, 33, 38, .08);
  --shadow-lg: 0 12px 32px rgba(23, 33, 38, .12);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Tasa Orbiter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px; letter-spacing: .005em;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 16px; border-radius: var(--radius-md); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Typography (mobile first) ---------- */
.h1, .h2, .h3, .h4, .h5, h1, h2, h3, h4, h5 { font-weight: 700; color: var(--text-primary); }
.h1, h1 { font-size: 40px; line-height: 48px; letter-spacing: -.02em; }
.h2, h2 { font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
.h3, h3 { font-size: 28px; line-height: 36px; letter-spacing: -.015em; }
.h4, h4 { font-size: 24px; line-height: 32px; letter-spacing: -.01em; }
.h5, h5 { font-size: 20px; line-height: 28px; letter-spacing: -.005em; }
.body-xl { font-size: 20px; line-height: 28px; letter-spacing: 0; }
.body-l  { font-size: 16px; line-height: 24px; letter-spacing: .005em; }
.body-m  { font-size: 14px; line-height: 20px; letter-spacing: .005em; }
.body-s  { font-size: 12px; line-height: 16px; letter-spacing: .015em; }
.semibold { font-weight: 600; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .015em; color: var(--text-secondary); }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .01em; color: var(--neutral-400); }
.muted { color: var(--text-secondary); }

@media (min-width: 900px) {
  .h1, h1 { font-size: 72px; line-height: 80px; }
  .h2, h2 { font-size: 56px; line-height: 64px; }
  .h3, h3 { font-size: 40px; line-height: 48px; letter-spacing: -.015em; }
  .h4, h4 { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
  .h5, h5 { font-size: 24px; line-height: 32px; letter-spacing: -.005em; }
}
/* Osioiden otsikot ovat yksi porras pienempiä kuin hero */
.section-title { font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
@media (min-width: 900px) { .section-title { font-size: 48px; line-height: 56px; } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: var(--section-y); } }
.section--surface { background: var(--bg-surface); }
.section--fb { background: #FBFBFB; }
.section--subtle { background: var(--bg-subtle); }
.section-head { max-width: 760px; display: grid; gap: var(--space-4); margin-bottom: var(--space-12); }
.section-head p { color: var(--text-secondary); font-size: 18px; line-height: 28px; }
.section-head--center { margin-inline: auto; text-align: center; }
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 48px; padding: 0 28px; border-radius: var(--radius-full);
  font-size: 16px; font-weight: 500; letter-spacing: .005em; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn--primary { background: var(--action-primary); color: var(--text-on-brand); }
.btn--primary:hover { background: var(--action-primary-hover); }
.btn--secondary { background: transparent; color: var(--primary-700); border-color: var(--primary-700); }
.btn--secondary:hover { background: var(--bg-brand-subtle); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn--light { background: var(--white); color: var(--neutral-900); }
.btn--light:hover { background: var(--neutral-50); }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.8); background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }
.btn[disabled] { background: var(--action-primary-disabled); color: var(--text-disabled); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background .2s, box-shadow .2s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border-default); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 28px; letter-spacing: -.03em; }
.logo img { height: 40px; width: auto; }
.nav-main { display: none; gap: var(--space-6); font-size: 16px; }
.nav-main a { padding: 8px 4px; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--primary-700); }
.nav-actions { display: none; align-items: center; gap: var(--space-6); font-size: 16px; color: var(--primary-700); }
.nav-actions > a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--neutral-900); border-radius: 2px; position: relative; transition: transform .2s; content: ""; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg-page); padding: var(--space-6); z-index: 49; flex-direction: column; gap: var(--space-2); overflow: auto; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; border-bottom: 1px solid var(--border-default); }
.mobile-menu .btn-row { margin-top: var(--space-6); }
.mobile-menu .btn { flex: 1; }
@media (min-width: 1000px) {
  .nav-main, .nav-actions { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 64px); padding-bottom: 72px; background: linear-gradient(180deg, var(--neutral-0) 0%, var(--neutral-50) 55%, var(--neutral-200) 130%); }
@media (min-width: 900px) { .hero { padding-top: calc(var(--header-h) + 128px); padding-bottom: 96px; } }
.hero h1 { max-width: 16ch; }
@media (min-width: 900px) { .hero h1 { max-width: 22ch; } }
.hero .lead { margin-top: var(--space-6); color: var(--text-secondary); font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: 0; }
@media (min-width: 900px) { .hero .lead { font-size: 28px; line-height: 36px; letter-spacing: -.01em; } }
.hero .btn-row { margin-top: var(--space-12); }
.hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-12); color: var(--neutral-600); }
.hero-badges img { height: 44px; width: auto; }
.gray { filter: grayscale(1) contrast(.9); opacity: .85; }
.page-hero { margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 64px); padding-bottom: 64px; background: linear-gradient(180deg, var(--neutral-0) 0%, var(--neutral-50) 100%); }
@media (min-width: 900px) { .page-hero { padding-top: calc(var(--header-h) + 96px); padding-bottom: 96px; } }
.page-hero h1 { font-size: 40px; line-height: 48px; max-width: 18ch; }
@media (min-width: 900px) { .page-hero h1 { font-size: 64px; line-height: 72px; } }
.page-hero p.lead { margin-top: var(--space-6); max-width: 640px; font-size: 20px; line-height: 28px; color: var(--text-secondary); }
.page-hero .btn-row { margin-top: var(--space-8); }

/* ---------- Showcase ---------- */
.showcase { margin-top: var(--space-12); background: #F6F6F6; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: 16px; }
@media (min-width: 900px) { .showcase { padding: 64px; border-radius: 40px; } }
.showcase video, .showcase img { width: 100%; border-radius: var(--radius-lg); background: var(--white); }

/* ---------- Benefits ---------- */
.benefits { display: grid; background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); overflow: hidden; }
.benefit { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-8) var(--space-6); }
.benefit + .benefit { border-top: 1px solid var(--border-default); }
.benefit h3 { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--primary-900); letter-spacing: -.015em; }
.benefit p { color: var(--primary-900); max-width: 32ch; }
@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefit { gap: var(--space-3); padding: var(--space-12) var(--space-8); }
  .benefit + .benefit { border-top: 0; border-left: 1px solid var(--border-default); }
  .benefit h3 { font-size: 40px; line-height: 48px; }
}

/* ---------- Testimonial ---------- */
.band-dark { background: var(--neutral-600); color: var(--white); }
.band-dark h2 { color: var(--white); }
.quote-card { max-width: 672px; margin: var(--space-12) auto; background: var(--neutral-0); color: var(--primary-900); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-8) var(--space-6); display: grid; gap: var(--space-4); }
.quote-card .qmark { width: 56px; color: var(--neutral-400); }
.quote-card blockquote { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.005em; color: var(--primary-900); }
@media (min-width: 900px) { .quote-card blockquote { font-size: 24px; line-height: 32px; } }
.quote-meta { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.quote-meta img:first-child { width: 94px; height: 94px; border-radius: var(--radius-lg); object-fit: cover; background: #cfe0f0; }
.quote-meta .who { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text-primary); font-weight: 600; font-size: 16px; line-height: 24px; }
.quote-meta .who span { display: block; color: var(--text-secondary); font-weight: 400; font-size: 16px; }
.quote-meta .org { flex: none; width: 56px; height: 56px; border-radius: var(--radius-lg); object-fit: cover; filter: grayscale(1); opacity: .75; }

/* ---------- Feature cards ---------- */
.cards-3 { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.fcard img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; object-position: center; border-radius: var(--radius-xl); border: 1px solid var(--border-default); margin-bottom: var(--space-6); }
.fcard h3 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.005em; margin-bottom: var(--space-2); }
.fcard p { color: var(--text-secondary); }

/* ---------- Integration ---------- */
.split { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (min-width: 1000px) { .split { gap: var(--space-16); } }
.split img, .split video { width: 100%; border-radius: var(--radius-xl); }
.checklist { display: grid; gap: var(--space-8); }
.checklist li { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4); }
.checklist svg { width: 28px; height: 28px; margin-top: 2px; color: var(--neutral-900); }
.checklist h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.checklist p { color: var(--text-secondary); font-size: 16px; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-16); }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-tile { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); height: 112px; display: grid; place-items: center; padding: 24px 32px; }
.logo-tile img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; }

/* ---------- Trust ---------- */
.trust-panel { display: grid; background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); overflow: hidden; }
.trust-item { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-8) var(--space-6); color: var(--primary-900); }
.trust-item + .trust-item { border-top: 1px solid var(--border-default); }
.trust-item svg { width: 48px; height: 48px; margin-bottom: var(--space-4); }
.trust-item h3 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.005em; color: var(--primary-900); }
.trust-item p { color: var(--primary-900); }
@media (min-width: 900px) {
  .trust-panel { grid-template-columns: repeat(3, 1fr); }
  .trust-item { padding: var(--space-12) var(--space-8); }
  .trust-item + .trust-item { border-top: 0; border-left: 1px solid var(--border-default); }
}
.cert-grid { display: grid; gap: var(--space-6) var(--space-8); margin-top: var(--space-12); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(4, 1fr); } }
.cert { display: flex; gap: var(--space-4); align-items: center; }
.cert .ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; color: var(--neutral-600); }
.cert .ico svg, .cert .ico img { width: 44px; height: 44px; object-fit: contain; }
.cert b { display: block; font-weight: 600; font-size: 16px; }
.cert span { display: block; font-size: 14px; color: var(--text-secondary); line-height: 20px; }

/* ---------- Team ---------- */
.team { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team { gap: var(--space-6); } }
.person { container-type: inline-size; position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: .8; background: #fff; isolation: isolate; transform: translateZ(0); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.faq-layout h2 { color: var(--primary-900); }
.faq-layout .intro { color: var(--text-secondary); font-size: 20px; line-height: 28px; margin-top: var(--space-4); letter-spacing: 0; }
.btn--phone { margin-top: var(--space-8); background: var(--neutral-600); color: var(--white); height: 58px; padding: 0 28px; font-size: 22px; font-weight: 500; }
.btn--phone:hover { background: var(--neutral-900); }
.btn--phone svg { width: 24px; height: 24px; }
.faq { display: grid; gap: var(--space-3); align-content: start; }
.faq details { background: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-xl); transition: background .15s; }
.faq details[open] { background: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 24px; font-size: 18px; line-height: 24px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 24px; height: 24px; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 24px; color: var(--text-secondary); max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--neutral-900); color: var(--white); text-align: center; padding-block: 96px; }
@media (min-width: 900px) { .cta-band { padding-block: 160px; } }
.cta-band h2 { color: var(--white); font-size: 36px; line-height: 44px; }
@media (min-width: 900px) { .cta-band h2 { font-size: 64px; line-height: 72px; } }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-8); }

/* ---------- Footer ---------- */
.site-footer { background: #FBFBFB; padding-top: 64px; }
.footer-grid { display: grid; gap: var(--space-12); padding-bottom: var(--space-16); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 2fr; } }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand .flag { display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 16px; }
.footer-brand .flag svg { width: 28px; height: 18px; }
.social { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--neutral-50); display: grid; place-items: center; color: var(--neutral-600); transition: background .15s, color .15s; }
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--primary-50); color: var(--primary-700); }
.newsletter label { display: block; color: var(--text-secondary); margin-bottom: var(--space-2); }
.newsletter .field { display: flex; align-items: center; max-width: 300px; background: var(--neutral-0); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding-right: 4px; }
.newsletter .field:focus-within { border-color: var(--border-focus); }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 12px 14px; color: var(--text-primary); outline: none; }
.newsletter button { border: 0; background: transparent; width: 36px; height: 36px; cursor: pointer; border-radius: var(--radius-sm); color: var(--primary-700); }
.newsletter button:hover { background: var(--bg-brand-subtle); }
.newsletter .field { transition: background .2s, border-color .2s; }
.newsletter .field-msg { display: none; flex: 1; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: 16px; line-height: 24px; }
.newsletter .field.is-success, .newsletter .field.is-error { padding-right: 0; }
.newsletter .field.is-success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.newsletter .field.is-error { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.newsletter .field.is-success input, .newsletter .field.is-success button, .newsletter .field.is-error input, .newsletter .field.is-error button { display: none; }
.newsletter .field.is-success .field-msg, .newsletter .field.is-error .field-msg { display: flex; }
.newsletter .field.is-success .field-msg::before { content: "✓"; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h4 { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; margin-bottom: var(--space-4); }
.footer-cols ul { display: grid; gap: var(--space-3); }
.footer-cols a { color: var(--text-secondary); }
.footer-cols a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--border-default); padding-block: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); justify-content: space-between; color: var(--text-secondary); font-size: 14px; }

/* ---------- Content pages ---------- */
.prose { max-width: 720px; display: grid; gap: var(--space-4); }
.prose h2 { font-size: 28px; line-height: 36px; margin-top: var(--space-8); }
.prose p, .prose li { color: var(--text-secondary); font-size: 18px; line-height: 28px; }
.prose ul { list-style: disc; padding-left: 24px; display: grid; gap: var(--space-2); }
.step-grid { display: grid; gap: var(--space-6); counter-reset: s; }
@media (min-width: 900px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-8); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--bg-brand-subtle); color: var(--primary-700); font-weight: 700; margin-bottom: var(--space-4); }
.step h3 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.005em; margin-bottom: var(--space-2); }
.step p { color: var(--text-secondary); }
.contact-grid { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.contact-list { display: grid; gap: var(--space-6); }
.contact-list b { display: block; font-size: 14px; color: var(--text-secondary); font-weight: 600; margin-bottom: 2px; }
.contact-list a { font-size: 20px; font-weight: 500; color: var(--primary-700); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-card { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-md); padding: var(--space-8); display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .form-card { padding: 40px; } }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-group { display: grid; gap: 6px; }
.field-group label { font-size: 14px; font-weight: 600; }
.field-group input, .field-group textarea, .field-group select { font: inherit; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--white); color: var(--text-primary); width: 100%; box-shadow: var(--shadow-sm); }
.field-group textarea { min-height: 120px; resize: vertical; }
.field-group input:focus, .field-group textarea:focus, .field-group select:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(38,128,112,.18); }
.form-note { font-size: 14px; color: var(--text-secondary); }
.form-status { padding: 12px 16px; border-radius: var(--radius-md); background: var(--success-bg); color: var(--success); font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.team-lg { display: grid; gap: var(--space-8); }
.team-lg .row { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 800px) { .team-lg .row { grid-template-columns: 280px 1fr; gap: var(--space-12); } }
.team-lg img { width: 100%; max-width: 280px; aspect-ratio: .8; object-fit: cover; object-position: top; border-radius: var(--radius-xl); }
.team-lg h3 { font-size: 28px; line-height: 36px; }
.team-lg .role { color: var(--primary-700); font-weight: 600; margin: 4px 0 var(--space-3); }
.team-lg p { color: var(--text-secondary); max-width: 56ch; }
.values { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: var(--space-8); background: var(--bg-surface); border-radius: var(--radius-xl); border: 1px solid var(--border-default); }
.value h3 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: var(--space-2); letter-spacing: -.005em; }
.value p { color: var(--text-secondary); }

/* ---------- Reveal-animaatio ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

html:not(.js) .reveal { opacity: 1; transform: none; }
.hero-badges { list-style: none; }

/* Keskitetty hero (video) */
.hero[hidden] { display: none; }
.hero-wrap { background: linear-gradient(180deg, #F9F9F1 0%, #D0DAC6 100%); }
.hero--center { text-align: center; padding-bottom: 96px; background: transparent; }
.hero--center h1 { max-width: none; margin-inline: auto; font-size: 32px; line-height: 40px; text-wrap: balance; }
@media (min-width: 600px) { .hero--center h1 { font-size: clamp(36px, 6vw, 54px); line-height: 1.12; } }
@media (min-width: 900px) { .hero--center h1 { max-width: 23ch; font-size: 72px; line-height: 80px; } }
.hero-label { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--primary-600); margin-bottom: var(--space-4); letter-spacing: .005em; }
@media (min-width: 900px) { .hero-label { font-size: 20px; line-height: 28px; margin-bottom: var(--space-6); } }
.hero--center .btn-row { justify-content: center; margin-top: var(--space-8); }
.hero--center .showcase { margin-top: var(--space-12); text-align: left; }


/* Desktop: nostetaan hero-sisältöä, jotta video näkyy paremmin ensimmäisellä näytöllä */
@media (min-width: 900px) { .hero--center { padding-top: calc(var(--header-h) + 64px); } }

/* Ominaisuuskortit: vaakasuuntainen scroll puhelimella ja tabletilla */
.carousel { position: relative; }
.carousel-btn { display: none; }
@media (max-width: 899px) {
  .cards-3 { display: flex; gap: var(--space-4); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: var(--space-2); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cards-3::-webkit-scrollbar { display: none; }
  .cards-3 .fcard { flex: 0 0 clamp(260px, 78vw, 280px); scroll-snap-align: start; }
  .carousel-btn { display: grid; place-items: center; position: absolute; width: 48px; height: 48px; border: 0; border-radius: var(--radius-full); background: rgba(79, 94, 93, .6); color: var(--white); cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2; }
  .carousel-next { right: var(--space-4); }
  .carousel-prev { left: var(--space-4); }
  .carousel-btn[hidden] { display: none; }
  .carousel-btn svg { width: 20px; height: 20px; }
}

/* Tiimikortti: kuva täyttää kortin, alin neljännes on aina tekstille ja valkoiselle häivytykselle */
.person figcaption {
  position: absolute; inset: auto -1px -1px -1px; height: calc(26% + 1px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 calc(clamp(10px, 6cqw, 24px) + 1px) calc(clamp(10px, 5cqw, 20px) + 1px);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.94) 55%, #fff 100%);
  color: var(--text-secondary);
  font-size: clamp(11px, 4.6cqw, 16px); line-height: 1.3;
}
.person figcaption b { display: block; color: var(--text-primary); font-size: clamp(13px, 5.8cqw, 20px); line-height: 1.25; font-weight: 600; }

/* Demo-varauksen pop-up */
.demo-modal { border: 0; padding: 0; width: min(1000px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 32px)); max-width: none; max-height: none; border-radius: var(--radius-2xl); background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-modal::backdrop { background: rgba(23, 33, 38, .6); backdrop-filter: blur(4px); }
.demo-modal[open] { display: block; }
.demo-modal iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.demo-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-secondary); }
.demo-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: var(--radius-full); background: var(--neutral-50); color: var(--neutral-900); display: grid; place-items: center; cursor: pointer; }
.demo-close:hover { background: var(--neutral-200); }
.demo-close svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .demo-modal { width: 100vw; height: 100dvh; border-radius: 0; } }

/* Tietosuojaseloste */
.back-link { color: var(--text-link); font-weight: 600; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.prose a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; line-height: 32px; margin-top: var(--space-8); }
.legal p, .legal li, .legal td, .legal th { font-size: 17px; line-height: 26px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--white); }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { text-align: left; padding: 12px 16px; }
.legal th { background: var(--bg-subtle); color: var(--text-primary); font-weight: 600; }
.legal td { color: var(--text-secondary); border-top: 1px solid var(--border-default); }

/* Yhteystiedot: yksinkertainen kaksipalstainen asettelu */
.contact-page { padding-block: 32px 96px; }
.contact-layout { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 900px) { .contact-page { padding-block: 72px 128px; } .contact-layout { grid-template-columns: 1fr 1fr; gap: 96px; } }
.contact-intro h1 { font-size: 36px; line-height: 44px; max-width: 14ch; }
@media (min-width: 900px) { .contact-intro h1 { font-size: 56px; line-height: 64px; } }
.contact-points { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
.contact-points li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-4); }
.contact-points svg { width: 26px; height: 26px; margin-top: 2px; color: var(--neutral-900); }
.contact-points h2 { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.contact-points p { color: var(--text-secondary); max-width: 44ch; }
.contact-direct { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border-default); }
.contact-direct a { color: var(--text-link); font-weight: 500; }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--text-secondary); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary-600); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.contact-page .form-card .btn { justify-self: start; min-width: 200px; }

/* Lomakkeen kentät: kevyt, Tandem-tyylinen ilme */
.contact-page .form-card { padding: 32px; gap: var(--space-4); border-radius: var(--radius-2xl); }
@media (min-width: 900px) { .contact-page .form-card { padding: 40px; } }
.contact-page .field-group label { font-size: 13px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }
.contact-page .field-group input, .contact-page .field-group textarea, .contact-page .field-group select { padding: 14px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: none; background: var(--white); font-size: 16px; }
.contact-page .field-group ::placeholder { color: var(--neutral-400); opacity: 1; }
.contact-page .field-group select:invalid { color: var(--neutral-400); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--neutral-900); border-bottom: 2px solid var(--neutral-900); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.contact-page .form-card .btn { justify-self: center; margin-top: var(--space-2); }

/* Meistä */
.split--story { align-items: center; }
.story-photo { width: 100%; border-radius: var(--radius-2xl); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
@media (min-width: 700px) { .story-photo { aspect-ratio: 16 / 9; } }
@media (min-width: 900px) { .split--story { grid-template-columns: 7fr 5fr; } }
.offer { display: grid; gap: var(--space-6); align-items: center; background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: var(--space-8); }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr auto; padding: 48px; } }
.offer p { color: var(--text-secondary); font-size: 18px; line-height: 28px; margin-top: var(--space-3); max-width: 52ch; }
.offer .offer-note { font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-top: var(--space-4); }
.offer .btn { justify-self: start; }

.story-text { margin-top: var(--space-6); font-size: 20px; line-height: 28px; color: var(--text-secondary); max-width: 40ch; }
@media (min-width: 900px) { .story-text { font-size: 24px; line-height: 32px; } }
.why { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .why { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.why-text { display: grid; gap: var(--space-6); }
.why-text p { font-size: 20px; line-height: 30px; color: var(--text-secondary); }
@media (min-width: 900px) { .why-text p { font-size: 22px; line-height: 34px; } }

.section--first { padding-top: 64px; }
@media (min-width: 900px) { .section--first { padding-top: 96px; } }

.story { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .story { gap: var(--space-12); } }
.story-head { display: grid; gap: var(--space-4); max-width: 900px; }
.story-head h1 { font-size: 40px; line-height: 48px; }
@media (min-width: 900px) { .story-head h1 { font-size: 64px; line-height: 72px; } }
.story-text { margin-top: 0; max-width: 62ch; }

.contact-details { display: grid; gap: var(--space-6); margin-top: var(--space-12); }
.contact-details dt { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-secondary); margin-bottom: 2px; }
.contact-details dd { margin: 0; font-size: 20px; line-height: 28px; }
.contact-details a { color: var(--text-link); font-weight: 500; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-demo { margin-top: var(--space-12); }

/* Blogi */
.blog-title { font-size: 36px; line-height: 44px; max-width: 20ch; }
@media (min-width: 900px) { .blog-title { font-size: 56px; line-height: 64px; max-width: 18ch; } }
.blog-hero .lead { margin-top: var(--space-6); max-width: 640px; font-size: 20px; line-height: 28px; color: var(--text-secondary); }
.blog-list { padding-top: 48px; }
.post-grid { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .post-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
.post-card { display: flex; flex-direction: column; gap: var(--space-3); background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: var(--space-8); transition: box-shadow .2s, transform .2s, border-color .2s; }
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.post-card .eyebrow { color: var(--primary-700); }
.post-card h2 { font-size: 24px; line-height: 32px; letter-spacing: -.005em; font-weight: 700; }
.post-summary { color: var(--text-secondary); }
.post-meta { margin-top: auto; padding-top: var(--space-4); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.post-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-700); font-weight: 600; }
.post-link svg { width: 18px; height: 18px; transition: transform .2s; }
.post-card:hover .post-link svg { transform: translateX(3px); }
.article-head { margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; background: linear-gradient(180deg, var(--neutral-0) 0%, var(--neutral-50) 100%); }
@media (min-width: 900px) { .article-head { padding-top: calc(var(--header-h) + 80px); padding-bottom: 64px; } }
.article-head h1 { font-size: 36px; line-height: 44px; max-width: 22ch; margin-top: 12px; }
@media (min-width: 900px) { .article-head h1 { font-size: 56px; line-height: 64px; } }
.article-head .eyebrow { color: var(--primary-700); }
.back-link { color: var(--text-link); font-weight: 600; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-meta-line { margin-top: var(--space-6); color: var(--text-secondary); }
.article-body { padding-top: 48px; }
.prose.article { max-width: 720px; }
.prose.article h2 { font-size: 28px; line-height: 36px; margin-top: var(--space-8); }
.prose.article h3 { font-size: 22px; line-height: 30px; margin-top: var(--space-6); }
.prose.article p, .prose.article li { color: var(--text-primary); font-size: 18px; line-height: 30px; }
.prose.article strong { font-weight: 700; }

/* Artikkelin sisällysluettelo ja UKK */
.toc { background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-6); margin-bottom: var(--space-4); }
.toc-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-3); }
.toc ul { list-style: none; padding: 0; gap: var(--space-2); }
.toc a { color: var(--text-link); font-weight: 500; font-size: 16px; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose.article h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.article-faq { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.article-faq details { border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: transparent; }
.article-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 18px; line-height: 26px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary svg { flex: none; width: 24px; height: 24px; transition: transform .2s; }
.article-faq details[open] summary svg { transform: rotate(180deg); }
.article-faq .answer { padding: 0 24px 24px; color: var(--text-secondary) !important; font-size: 17px !important; line-height: 28px !important; }
.prose .toc a { text-decoration: none; } .prose .toc a:hover { text-decoration: underline; }

/* Artikkeli: sivupalkki + sisältö, vihreä väriteema */
.article-layout { display: grid; gap: var(--space-8); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-16); align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.article-aside .toc { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; }
.toc-title { font-size: 13px !important; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700 !important; color: var(--primary-600) !important; margin-bottom: var(--space-4) !important; }
.article-aside .toc ul { display: grid; gap: var(--space-3); }
.article-aside .toc a { color: var(--text-secondary); font-weight: 400; line-height: 22px; display: block; }
.article-aside .toc a:hover, .article-aside .toc a.is-active { color: var(--primary-900); }
.article-aside .toc a.is-active { font-weight: 600; }
@media (max-width: 999px) { .article-aside .toc { border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-6); } }
.prose.article { max-width: 760px; gap: var(--space-4); }
.prose.article h2 { font-size: 32px; line-height: 40px; letter-spacing: -.02em; color: var(--primary-900); margin-top: var(--space-12); }
.prose.article h2:first-child { margin-top: 0; }
@media (min-width: 900px) { .prose.article h2 { font-size: 40px; line-height: 48px; } }
.prose.article p, .prose.article li { color: var(--primary-900); font-size: 18px; line-height: 30px; }
.prose.article ul { gap: var(--space-3); }
.prose.article .art-step { border-left: 3px solid var(--primary-600); padding-left: var(--space-6); display: grid; gap: var(--space-2); margin-block: var(--space-2); }
.prose.article .art-step h3 { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--primary-900); margin: 0; }
.article-buttons { margin-top: var(--space-2); }
.btn--arrow svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn--arrow:hover svg { transform: translateX(3px); }
.prose.article .btn { text-decoration: none; font-size: 16px; line-height: 1; }
.prose.article .btn--secondary { color: var(--primary-700); }
.prose.article .btn--primary { color: var(--text-on-brand); }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--border-default); }
.prose.article .article-cta p { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; color: var(--primary-900); }
.article-faq { margin-top: var(--space-2); }
.article-faq .answer { color: var(--primary-900) !important; opacity: .85; }

.prose.article ol { list-style: decimal; padding-left: 24px; display: grid; gap: var(--space-3); }
.prose.article ol li::marker { color: var(--primary-600); font-weight: 700; }

.form-title { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.005em; margin-bottom: var(--space-2); }

@media (max-width: 480px) {
  .quote-card { padding: var(--space-6) var(--space-6) var(--space-6); }
  .quote-card blockquote { font-size: 18px; line-height: 26px; }
  .quote-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .quote-meta img:first-child { width: 72px; height: 72px; }
  .quote-meta .org { grid-column: 1 / -1; justify-self: center; width: 72px; height: 72px; margin-top: var(--space-4); border-radius: var(--radius-xl); }
  .quote-card .qmark { width: 44px; }
}

/* Pitkät sanat eivät saa venyttää sivua kapeilla näytöillä */
h1, h2, h3, h4, .section-title, .lead { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) { .section-title { font-size: 28px; line-height: 36px; } }
