/* Takmed – tyylit
   Pankkien sivujen tapaan: valoisa kuva ja valkoinen tekstipaneeli, kevyet otsikot,
   paljon valkoista tilaa, ei koristeviivoja. Takmedin logon vihreä korostusvärinä.
   ONEtoONE-sivu käyttää ONEtoONEn omia värejä ja Fraunces-otsikkofonttia (.theme-o2o). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #13233a;
  --navy-2: #1d3554;
  --ink: #1f2c3d;
  --ink-soft: #566373;
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --line: #e2e7ec;
  --field: #a9b4c0;
  --green: #2cb438;
  --green-strong: #23802f;
  --green-hover: #1c6a27;
  --green-tint: #e7f4e9;
  --red: #b3261e;
  --on-dark: #ffffff;
  --on-dark-soft: #c6d0dc;

  --o2o: #16607f;
  --o2o-dark: #114c66;
  --o2o-navy: #16273f;
  --o2o-light: #edf3f6;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.5rem + 2.8vw, 3.6rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --header: 84px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(19, 35, 58, .05), 0 14px 34px -16px rgba(19, 35, 58, .22);
  --shadow-lg: 0 2px 6px rgba(19, 35, 58, .06), 0 30px 60px -24px rgba(19, 35, 58, .35);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Otsikot kevyellä painolla kuten pankkien sivuilla; pienet otsikot tummempina. */
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; text-wrap: balance; }
h1, h2 { font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); line-height: 1.08; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-strong); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: var(--on-dark); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Painikkeet ja linkit ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  background: var(--green-strong); color: #fff;
  border: 2px solid var(--green-strong); border-radius: var(--radius);
  font: inherit; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button[disabled] { opacity: .6; cursor: progress; }
.button-small { min-height: 44px; padding: 8px 20px; font-size: 0.95rem; }
.button-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.button-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-light { background: #fff; color: var(--navy); border-color: #fff; }
.button-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); }
/* Nuolilinkki (›) kuten pankkien sivuilla */
.text-link, .link-arrow, .situation-links a {
  font-weight: 600; color: var(--navy); text-decoration: none;
}
.text-link::after, .link-arrow::after, .situation-links a::after {
  content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 2px 0.12em 9px; vertical-align: middle;
  border-top: 2px solid var(--green-strong); border-right: 2px solid var(--green-strong);
  transform: rotate(45deg); transition: transform .15s ease;
}
.text-link:hover, .link-arrow:hover, .situation-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; color: var(--green-strong); }
.text-link:hover::after, .link-arrow:hover::after, .situation-links a:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Yläpalkki ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px -20px rgba(19, 35, 58, .45);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header); }
.brand { order: 1; margin-right: auto; display: block; flex: none; }
.brand img { width: 168px; height: auto; }

/* Työpöydällä valikon osat asettuvat suoraan riviin: valikko, ONEtoONE-logo, kieli, yhteydenotto. */
.header-menu { display: contents; }
.main-nav { order: 2; }
.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a { display: block; padding: 6px 0; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1rem; }
.main-nav a:hover { color: var(--green-strong); }
.main-nav a[aria-current="page"] { color: var(--green-strong); box-shadow: inset 0 -2px 0 var(--green); }

.header-o2o { order: 3; display: flex; align-items: center; padding: 6px 4px; border-radius: var(--radius); flex: none; }
.header-o2o img { width: 168px; height: auto; }
.header-o2o:hover { background: var(--o2o-light); }
.header-o2o[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--o2o); border-radius: 0; }

.lang-switch { order: 4; display: flex; gap: 2px; list-style: none; }
.lang-switch a { display: block; padding: 6px 7px; font-size: 0.85rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ink-soft); border-radius: var(--radius); }
.lang-switch a:hover { color: var(--navy); background: var(--bg-alt); }
.lang-switch a[aria-current="true"] { color: var(--navy); background: var(--bg-alt); }

.header-cta { order: 5; }
.header-cta[aria-current="page"] { background: var(--navy); border-color: var(--navy); }

.menu-toggle { display: none; }

@media (max-width: 1180px) {
  :root { --header: 72px; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; }
  .brand { display: flex; align-items: center; height: var(--header); }
  .brand img { width: 140px; }
  .header-o2o { order: 2; }
  .header-o2o img { width: 128px; }
  .js .menu-toggle {
    order: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: var(--bg-alt); border: 0; border-radius: var(--radius);
    font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--navy); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .is-open .menu-icon { background: transparent; }
  .is-open .menu-icon::before { top: 0; transform: rotate(45deg); }
  .is-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

  .header-menu { order: 4; display: flex; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 20px; padding: 8px 0 24px; }
  .js .header-menu { display: none; }
  .js .site-header.is-open .header-menu { display: flex; }
  .main-nav, .main-nav ul { width: 100%; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 1.15rem; padding: 12px 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 400px) {
  .header-inner { gap: 0 10px; }
  .brand img { width: 118px; }
  .header-o2o img { width: 104px; }
  .js .menu-toggle { padding: 8px 10px; }
  .js .menu-toggle { font-size: 0; gap: 0; }
}

/* ---------- Osiot ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--bg-alt); }
.section-flush { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.eyebrow, .kicker {
  display: block; margin: 0 0 14px;
  color: var(--green-strong); font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.split-head p { margin-top: 18px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 42rem; font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin: 2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 42rem; }

/* ---------- Kuvallinen yläosa: valoisa kuva ja valkoinen tekstipaneeli ---------- */
.hero { position: relative; background: var(--bg); }
.hero-media { display: block; background: #9cc3dc; }
.hero-media img {
  width: 100%; height: clamp(480px, calc(100vh - var(--header) - 150px), 700px);
  object-fit: cover; object-position: 50% 62%;
}
.hero { --overlap: 300px; }
.hero-inner { position: relative; margin-top: calc(-1 * var(--overlap)); }
.hero-panel {
  position: relative; max-width: 680px;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px) clamp(32px, 4vw, 48px);
  background: #fff; box-shadow: var(--shadow-lg);
}
.hero-panel h1 { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.25rem); }
/* Luvut paneelin oikealla puolella kuvan alapuolella (leveillä näytöillä) */
.stats.hero-stats { margin: 40px 0 0; }
@media (min-width: 1280px) {
  .hero-inner { display: grid; grid-template-columns: 680px minmax(0, 1fr); column-gap: clamp(48px, 5vw, 88px); align-items: start; }
  .stats.hero-stats { margin: calc(var(--overlap) + 40px) 0 0; }
  .hero-stats dd { font-size: clamp(2.6rem, 1.6rem + 1.6vw, 3.2rem); }
}
.hero-lede { margin: 22px 0 0; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
@media (max-width: 760px) {
  .hero-media img { height: clamp(280px, 52vh, 420px); object-position: 46% 60%; }
  .hero-inner { margin-top: -72px; }
  .hero-panel { padding: 28px 22px 30px; }
  .hero-actions .button { width: 100%; }
}

/* Etusivun johdanto ja luvut */
.intro { padding-block: clamp(56px, 7vw, 96px) var(--section); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.intro-grid h2 { max-width: 14em; }
.intro-grid .lede { margin-top: 0; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stats dd { margin: 0; color: var(--navy); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: lining-nums; }
.stats dt { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 960px) { .intro-grid { grid-template-columns: 1fr; } }
.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
@media (max-width: 520px) {
  .stats:not(.stats-4) { grid-template-columns: 1fr; gap: 18px; }
  .stats:not(.stats-4) div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 18px; }
  .stats:not(.stats-4) dd { min-width: 88px; font-size: 2.4rem; }
}

/* Esimerkkilaskelma */
.ledger {
  margin: 0; padding: clamp(24px, 3vw, 36px);
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums lining-nums;
}
.ledger figcaption { font-weight: 600; color: var(--navy); margin-bottom: 18px; line-height: 1.4; }
.ledger-tag { display: block; margin-bottom: 6px; color: var(--green-strong); font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ledger th, .ledger td { padding: 10px 0; text-align: right; vertical-align: baseline; }
.ledger tbody tr + tr :is(th, td) { border-top: 1px solid var(--line); }
.ledger th[scope="row"], .ledger thead th:first-child { text-align: left; font-weight: 400; padding-right: 12px; }
.ledger thead th { font-weight: 600; font-size: var(--step--1); color: var(--ink-soft); padding-top: 0; }
.ledger td { width: 26%; white-space: nowrap; }
.ledger tfoot :is(th, td) { font-weight: 700; color: var(--navy); background: var(--bg-alt); padding-block: 12px; }
.ledger tfoot th[scope="row"] { padding-left: 12px; font-weight: 700; }
.ledger tfoot td:last-child { padding-right: 12px; }
.verified { display: inline-flex; align-items: center; gap: 6px; }
.adjustment { color: var(--red); font-weight: 600; }
.ledger-note { margin: 16px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.tick { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--green-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ledger .tick path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick-draw .45s ease-out forwards; }
.ledger tbody tr:nth-child(1) .tick path { animation-delay: .5s; }
.ledger tbody tr:nth-child(2) .tick path { animation-delay: .8s; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ledger .tick path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 420px) { .ledger { padding: 20px 16px; } .ledger table { font-size: 0.86rem; } }

/* Miksi Takmed: perustelut ja esimerkkilaskelma rinnakkain */
.why-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-grid .section-head { margin-bottom: 36px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Tilanteet: kuvalliset kortit ---------- */
.situations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.situation { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.situation-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.situation-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px 24px 28px; }
.situation p { color: var(--ink-soft); margin: 0; }
.situation-links { list-style: none; margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1100px) { .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .situations { grid-template-columns: 1fr; } }

/* ---------- Kuittauslista ---------- */
.checks { list-style: none; display: grid; gap: 28px; }
.checks li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.checks .tick { width: 36px; height: 36px; padding: 9px; background: var(--green-tint); border-radius: 50%; }
.checks h3 { font-size: 1.15rem; margin-bottom: 6px; }
.checks p { color: var(--ink-soft); }
.checks-plain { gap: 16px; }
.checks-plain li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.checks-plain .tick { width: 26px; height: 26px; padding: 5px; margin-top: 1px; }
.checks-plain strong { font-weight: 650; color: var(--navy); }

/* ---------- Vaiheet ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px;
  color: var(--green-strong); font-size: 2.6rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps-vertical { grid-template-columns: 1fr; gap: 26px; }
.steps-vertical li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
.steps-vertical li::before { grid-row: span 2; margin: 0; font-size: 2rem; }
.steps-vertical h3 { margin-bottom: 4px; }
.steps-compact { gap: 18px; }
.steps-compact li { grid-template-columns: 44px minmax(0, 1fr); }
.steps-compact li::before { font-size: 1.6rem; }
.subhead { font-size: var(--step-1); margin: 40px 0 16px; }

/* ---------- Sisäsivujen yläosa ---------- */
.page-head { background: var(--bg-alt); padding-block: clamp(44px, 6vw, 88px); margin-bottom: clamp(48px, 6vw, 88px); }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); max-width: 18em; }
.page-head .lede { margin-top: 20px; }
.page-head .hero-actions { margin-top: 30px; }
.crumbs { margin-bottom: 20px; font-size: var(--step--1); color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--ink-soft); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); }
.page-head-tall { padding-block: clamp(72px, 11vw, 150px); margin-bottom: 0; }
/* Kuvallinen versio: teksti vasemmalla, kuva oikealla reunaan asti */
.page-head-photo { padding-block: 0; overflow: hidden; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-head-text { padding-block: clamp(44px, 6vw, 88px); }
.page-head-media { align-self: stretch; margin-right: calc(-1 * var(--gutter)); min-height: 100%; }
.page-head-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
@media (min-width: 1321px) { .page-head-media { margin-right: calc((100vw - var(--wrap)) / -2 + 0px); } }
@media (max-width: 900px) {
  .page-head-grid { grid-template-columns: 1fr; gap: 0; }
  .page-head-media { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .page-head-media img { min-height: 0; height: 240px; }
  .page-head-text { padding-block: 32px 44px; }
}

/* Palvelusivun sisältö */
.service-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.service-body h2 { font-size: var(--step-2); margin-bottom: 20px; }
.service-body > div > h2:not(:first-child) { margin-top: 56px; }
@media (max-width: 900px) { .service-body { grid-template-columns: 1fr; } }
.aside-box { padding: 28px; background: var(--bg-alt); border-radius: var(--radius); }
.aside-box h2, .aside-box h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; margin-bottom: 12px; }
.aside-box ul { list-style: none; display: grid; gap: 10px; }
.aside-box li { padding-left: 18px; position: relative; }
.aside-box li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--green-strong); }
.aside-box + .aside-box { margin-top: 20px; }
.aside-o2o { background: var(--o2o-light); }
.aside-o2o img { width: 180px; height: auto; margin-bottom: 16px; }
.aside-o2o .text-link { color: var(--o2o); }
.aside-o2o .text-link::after { border-color: var(--o2o); }
.scope-note { margin-top: 24px; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius); color: var(--ink-soft); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.option { padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.option h3 { margin-bottom: 8px; }
.option p { color: var(--ink-soft); }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }

/* ---------- Luvut ---------- */
.figures { display: grid; grid-template-columns: repeat(var(--figs, 3), minmax(0, 1fr)); gap: 24px; margin: 20px 0; }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.figures dt { font-size: 0.95rem; color: var(--ink-soft); }
.figures dd { margin: 0; color: var(--navy); font-weight: 300; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: lining-nums; }

/* ---------- Henkilö ---------- */
.person-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 24px 0 0; }
.person-facts dt { color: var(--ink-soft); }
.person-facts dd { margin: 0; font-weight: 500; }
.person-facts + p { margin-top: 22px; }

/* ---------- ONEtoONE-nosto etusivulla ---------- */
.o2o-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--o2o-light); }
.o2o-feature-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.o2o-feature-body { padding: clamp(44px, 6vw, 96px) var(--gutter) clamp(44px, 6vw, 96px) clamp(32px, 6vw, 96px); max-width: 720px; align-self: center; }
.o2o-feature-logo { display: inline-block; margin-bottom: 30px; }
.o2o-feature-logo img { width: min(100%, 320px); height: auto; }
.o2o-feature h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--o2o-navy); margin-bottom: 18px; }
.o2o-feature p { color: #3f5566; }
.o2o-feature .hero-actions { margin-top: 28px; }
.button-o2o { background: var(--o2o); border-color: var(--o2o); }
.button-o2o:hover { background: var(--o2o-dark); border-color: var(--o2o-dark); }
.o2o-feature .link-arrow { color: var(--o2o); }
.o2o-feature .link-arrow::after { border-color: var(--o2o); }
@media (max-width: 860px) {
  .o2o-feature { grid-template-columns: 1fr; }
  .o2o-feature-media img { min-height: 0; height: 260px; }
  .o2o-feature-body { padding: 40px var(--gutter) 52px; }
}

/* ---------- UKK ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--bg-alt); border-radius: var(--radius); }
.section-tint .faq-item { background: #fff; box-shadow: 0 1px 2px rgba(19, 35, 58, .05); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--green-strong); border-bottom: 2px solid var(--green-strong);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover { color: var(--green-strong); }
.faq-answer { padding: 0 24px 22px; max-width: 46rem; color: var(--ink-soft); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: 18px; }
.faq-wrap { max-width: 56rem; }

/* ---------- Materiaalit ---------- */
.library { display: grid; gap: 56px; max-width: 56rem; }
.library-group h2 { font-size: var(--step-2); margin-bottom: 16px; }
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; background: var(--bg-alt); border-radius: var(--radius); }
.doc-title { font-weight: 600; font-size: 1.06rem; color: var(--navy); }
.doc-meta { color: var(--ink-soft); font-size: var(--step--1); }
.doc-link { flex: none; font-weight: 600; color: var(--green-strong); }
@media (max-width: 560px) { .doc-list li { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- Kehotusrivi ---------- */
.cta-band { background: #eaf4ec; padding-block: clamp(56px, 7vw, 88px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-row h2 { max-width: 22em; font-size: var(--step-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.related { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }
.related a { font-weight: 600; color: var(--navy); text-decoration: none; }
.related a:hover { color: var(--green-strong); text-decoration: underline; }

/* ---------- Yhteydenotto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-intro > p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; margin-top: 18px; }
.contact-intro .steps p { font-size: 1rem; }
.contact-details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 32px 0 0; }
.contact-details.contact-details-first { margin-top: 0; }
.contact-details dt { color: var(--ink-soft); }
.contact-details dd { margin: 0; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 40px); background: var(--bg-alt); border-radius: var(--radius); }
.section-tint .contact-form { background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: var(--radius);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.contact-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green-strong); }
.contact-form [aria-invalid="true"] { border-color: var(--red); }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-strong); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-privacy { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 500; background: #fff; }
.form-status.is-error { background: #fbeceb; color: #7a1a14; }
.form-status.is-ok { background: var(--green-tint); color: #1c5a25; }

/* ---------- Alatunniste ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding-block: 72px 44px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
.footer-logo { width: 168px; height: auto; margin-bottom: 20px; }
.footer-note { max-width: 30rem; }
.footer-head { font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--on-dark-soft); }
.footer-col a:hover { text-decoration: underline; color: #fff; }
.footer-member { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 52px; text-decoration: none; }
.footer-member img { width: 168px; height: auto; }
.footer-member p { margin: 0; color: var(--on-dark-soft); }
.footer-member:hover p { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Juridiset sivut ---------- */
.legal { font-size: 1.05rem; }
.legal h2 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; margin: 1.8em 0 0.5em; }
.updated { margin-top: 2.5em; color: var(--ink-soft); font-size: var(--step--1); }
.notfound-alt { margin-top: 18px; color: var(--ink-soft); }
.notfound-alt:first-of-type { margin-top: 40px; }

/* =========================================================
   ONEtoONE-sivu: ONEtoONE Corporate Financen värit ja typografia
   ========================================================= */
.theme-o2o h1, .theme-o2o main h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--o2o-navy); }
.hero-o2o .hero-media { background: #7fa6b8; }
.hero-o2o .hero-media img { object-position: 50% 55%; }
.o2o-hero-logo { width: min(100%, 300px); height: auto; margin-bottom: 24px; }
.hero-o2o .hero-panel h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.12; }
.theme-o2o .stats dd { font-family: var(--serif); font-weight: 400; color: var(--o2o); letter-spacing: -0.01em; }
.hero-o2o .crumbs { margin-bottom: 26px; }
.theme-o2o main .button { background: var(--o2o); border-color: var(--o2o); }
.theme-o2o main .button:hover { background: var(--o2o-dark); border-color: var(--o2o-dark); }
.theme-o2o main .button-outline { background: transparent; color: var(--o2o); border-color: var(--o2o); }
.theme-o2o main .button-outline:hover { background: var(--o2o); color: #fff; }
.theme-o2o main :is(.text-link, .link-arrow) { color: var(--o2o); }
.theme-o2o main :is(.text-link, .link-arrow)::after { border-color: var(--o2o); }
.theme-o2o :focus-visible { outline-color: var(--o2o); }
.o2o-services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.o2o-services li { padding: 16px 20px; background: var(--o2o-light); border-radius: var(--radius); font-weight: 600; color: var(--o2o-navy); }
@media (max-width: 560px) { .o2o-services { grid-template-columns: 1fr; } }
.theme-o2o .section-tint { background: var(--o2o-light); }
.theme-o2o .checks .tick { stroke: var(--o2o); background: #fff; }
.o2o-person { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.o2o-card { padding: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.o2o-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--o2o-navy); }
.o2o-card .role { color: var(--o2o); font-weight: 600; margin: 6px 0 16px; }
@media (max-width: 860px) { .o2o-person { grid-template-columns: 1fr; } }
.o2o-visit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 44px); background: var(--o2o-light); border-radius: var(--radius); }
.o2o-visit img { width: 200px; height: auto; }
.o2o-visit h2 { font-size: var(--step-2); margin-bottom: 8px; }
.o2o-visit p { color: #3f5566; margin: 0; }
@media (max-width: 900px) { .o2o-visit { grid-template-columns: 1fr; } }
.theme-o2o .cta-band { background: var(--o2o); }
.theme-o2o .cta-band h2 { color: #fff; }
.theme-o2o .cta-band :focus-visible { outline-color: #fff; }
.theme-o2o main .cta-band .button { background: #fff; color: var(--o2o); border-color: #fff; }
.theme-o2o main .cta-band .button:hover { background: var(--o2o-light); border-color: var(--o2o-light); }

@media print {
  .site-header, .site-footer, .contact-form, .hero-media, .page-head-media { display: none; }
  .hero-inner { margin-top: 0; }
  .hero-panel { box-shadow: none; padding: 0; }
}
