/* nx.css — uusi ulkoasu (2026-11) site.css:n päälle: valikko, alapalkki ja sisältösivujen kerros.
   Ladataan site.css:n ja sivun omien tyylien jälkeen. Lähde: claude.ai-mallinnukset 24.10.–3.11. */
/* ═══ Uusi ulkoasu nykyisen site.css:n päälle (mallinnukset 24.10.) ═══
   site.css on mukana sellaisenaan; tämä kerros muuttaa vain ulkoasun: pyöristetyt kortit,
   pilleripainikkeet, leipätekstifontti pienteksteissä (ei versaali-mono-tekstiä), sama valikko ja alapalkki kuin muissa mallinnuksissa. */
:root { --paper-dim: #f4f4f1; --r-lg: 20px; --r-md: 14px; color-scheme: light }
body { font-weight: 300 }
em { font-style: italic }
.hero em { color: var(--mint) }
.section.dim em, .section:not(.on-ink) em { color: var(--mint-deep) }

/* pienet otsikot ja tunnisteet: leipätekstifontti, ei versaalia */
.label { font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: 0; text-transform: none }
.crumbs { font-family: var(--font-body); font-size: .9rem; letter-spacing: 0; text-transform: none; border: 0; padding: 0; margin-bottom: 1.6rem; color: var(--text-dim) }
.crumbs a { color: rgba(255,255,255,.78) } .crumbs .sep { color: rgba(255,255,255,.3) }
.cells .k, .ledger-row .k, .hero-facts-grid .k, .area .k, .steps4 .k, .cmp thead .k, .pc-tag, .pc-total .k, .example-card h3, .tl-when small, .facts th, .cmp tbody th, .faq-item summary .q, .seealso span, .footer-col h2 {
    font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: 0; text-transform: none }
.gen-note, .pc-meta, .facts .cap, .cap-inline, .ledger-row .meta a, .ledger-row .meta .sec a, .cmp td a, .seealso, .facts td .sel { font-family: var(--font-body); letter-spacing: 0 }
.gen-note { font-size: .9rem }
.mono { font-family: var(--font-display); font-weight: 700 }

/* otsikko-osa */
.hero h1 { text-transform: uppercase; font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: .97; overflow-wrap: break-word }
@media (max-width: 600px) { .hero h1 { font-size: min(2.2rem, 8.2vw) } }
.hero h1 em { display: block }
.hero-main { border-right: 0 }
.hero-inner { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.2rem, 4vw, 3.2rem) }
.hero-facts { border-top: 0 }
.hero-facts-grid { gap: .8rem; background: none; padding-bottom: clamp(2rem, 4vw, 3rem) }
.hero-facts-grid > div { background: rgba(255,255,255,.07); border-radius: var(--r-md); padding: 1rem 1.2rem }
.hero-facts-grid .v { font-weight: 700 }
@media (max-width: 900px) { .hero-main { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.6rem } }

/* painikkeet */
.btn-primary, .btn-secondary { font-family: var(--font-body); font-size: .98rem; font-weight: 700; letter-spacing: 0; text-transform: none; border-radius: 999px; padding: .95rem 1.7rem; border-width: 1.5px }
.btn-secondary { background: rgba(10,10,10,.03) }
.hero .btn-secondary, .on-ink .btn-secondary { background: rgba(255,255,255,.05) }
.copy { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; border-radius: 999px; padding: .3rem .8rem; background: var(--paper-dim); border-color: transparent; color: var(--ink) }

/* osiot */
.section { padding-block: clamp(3.8rem, 7vw, 6rem) }
.heading { font-weight: 800; letter-spacing: -.02em; font-size: clamp(2rem, 4vw, 3.1rem) }
.lead { font-size: 1.05rem; line-height: 1.6 }
.lock { border-left: 0; padding: 1.4rem 1.5rem; background: var(--paper-dim); border-radius: var(--r-lg) }
.on-ink .lock { background: rgba(255,255,255,.06) }
.section.dim .lock { background: var(--paper) }

/* kortit: ruudukon hiusviivat → erilliset pyöristetyt kortit */
.cells { gap: 1rem; background: none; border: 0 }
.cells > * { background: var(--paper-dim); border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.7rem }
.section.dim .cells > * { background: var(--paper) }
.on-ink .cells { background: none }
.on-ink .cells > * { background: rgba(255,255,255,.06) }
.cells > .ink-cell, .section.dim .cells > .ink-cell { background: var(--ink) }
.link-cells a:hover { background: #1b1b1b !important }
.steps4 { gap: .8rem; background: none; border: 0 }
.steps4 li { background: var(--paper-dim); border-radius: var(--r-lg) }
.section.dim .steps4 li { background: var(--paper) }

/* kirjanpitorivit, tiekartta, vertailutaulukko */
.ledger { border-top: 0; display: flex; flex-direction: column; gap: .8rem }
.ledger-row { background: var(--paper-dim); border-radius: var(--r-lg); border-bottom: 0; padding: 1.5rem 1.6rem }
.section.dim .ledger-row { background: var(--paper) }
.on-ink .ledger-row { background: rgba(255,255,255,.06) }
.ledger-row .meta .btn-primary { padding: .7rem 1.2rem; font-size: .9rem }
.road { border-top: 0; gap: .8rem }
.road-item { background: var(--paper-dim); border-radius: var(--r-lg); border-bottom: 0; padding: 1.3rem 1.4rem }
.cmp-wrap { border-top: 0; border-radius: var(--r-lg); border: 1px solid var(--line) }
.cmp th, .cmp td { padding-left: 1.2rem }
.cmp thead th { background: var(--paper-dim) }

/* merkit */
.chip { clip-path: none; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: .9rem; letter-spacing: 0; padding: .45rem 1rem }
.chip.outline { border: 1.5px solid var(--line); color: var(--ink) }
.on-ink .chip.outline { border-color: var(--line-light); color: var(--paper) }

/* aikajana → kortit */
.timeline { border-top: 0; gap: 1rem }
.tl-step { background: var(--paper-dim); border-radius: var(--r-lg); padding: 1.6rem 1.5rem }
.tl-step::before { display: none }
.on-ink .tl-step { background: rgba(255,255,255,.06) }
.section.dim .tl-step { background: var(--paper) }
.tl-when { font-size: clamp(2rem, 3.6vw, 2.8rem) }
.tl-when small { margin-bottom: .7rem }
@media (max-width: 800px) { .timeline { border-left: 0; margin-left: 0 } .tl-step { padding: 1.4rem 1.3rem } }

/* tietotaulukko ja tarkistuslista */
.facts th { width: 34% }
.ticks { border-top: 0; gap: .5rem }
.ticks li { border-bottom: 0; background: var(--paper-dim); border-radius: var(--r-md); padding: .9rem 1rem .9rem 2.8rem }
.ticks li::before { left: 1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: color-mix(in oklab, var(--mint) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a5e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E") center / 70% no-repeat }
.section.dim .ticks li { background: var(--paper) }
.on-ink .ticks li { background: rgba(255,255,255,.06) }

/* hintakortit */
.price-card, .example-card { border-radius: var(--r-lg) }
.pc-row, .example-card table { font-family: var(--font-body) }
.example-card .example-sub { font-weight: 700 }

/* UKK */
.faq-list { border-top: 1px solid var(--line) }
.faq-item summary { font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.25rem) }
.faq-item summary .plus, .faq-plain .faq-item summary::after { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--mint) 16%, transparent); font-family: var(--font-body); font-size: 1.2rem }

/* Laske hinta -raita ja Katso myös */
.cta-stripe { border: 0 }
.cs-text { font-family: var(--font-display); font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: clamp(1.3rem, 2.4vw, 1.8rem) }
.cs-text::before { content: none }
.cs-sub { font-size: .98rem }
.btn-cs { font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: 0; text-transform: none; border-radius: 999px }
.seealso { font-size: .95rem; border-top: 0 }
.seealso a { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--mint-deep) 35%, transparent); text-underline-offset: 3px }
.deco-divider { height: 14px }

/* ═══ Valikko (sama kuin muissa mallinnuksissa) ═══ */
.nx-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ink); border-bottom: 2px solid var(--paper) }
.nx-nav .nx-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-block: 1.1rem }
.nx-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--paper); display: flex; align-items: center; gap: .6rem }
.nx-logo:hover { color: var(--paper) }
.nx-logo img { width: 34px; height: 34px }
.nx-logo .n365 { color: var(--mint) }
.nx-links { display: flex; align-items: center; list-style: none; gap: .25rem; margin-left: auto }
.nx-links a { font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.78); padding: .5rem .9rem; border-radius: 999px; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease) }
.nx-links a:hover { color: var(--paper); background: rgba(255,255,255,.09) }
.nx-links a[aria-current="page"] { color: var(--ink); background: var(--mint) }
.nx-cta { font-family: var(--font-body); font-size: .92rem; font-weight: 700; white-space: nowrap; color: var(--ink); background: var(--mint); padding: .55rem 1.1rem; border-radius: 999px }
.nx-cta:hover { color: var(--ink) }
.nx-links .s { display: none }
@media (max-width: 1000px) { .nx-links { order: 3; width: 100%; margin-left: -.5rem } .nx-cta { margin-left: auto; font-size: .86rem; padding: .5rem 1rem } }
@media (max-width: 640px) { .nx-links { justify-content: space-between; margin-inline: -.6rem } .nx-links .l { display: none } .nx-links .s { display: inline } .nx-links a { padding: .45rem .6rem; font-size: .86rem } }
section[id] { scroll-margin-top: 5.5rem }
@media (max-width: 640px) { section[id] { scroll-margin-top: 8.5rem } }
.example-card tr.total td { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 700 }


/* ═══ Alapalkki (yhteinen kaikille mallinnuksille; linkit kuten nykyisen sivuston alapalkissa) ═══ */
.nx-deco { height: 14px; background: repeating-linear-gradient(45deg, oklch(0.80 0.17 162) 0 3px, transparent 3px 21px); background-color: #0a0a0a }
.nx-foot { background: #0a0a0a; color: #fff; border-top: 1px solid rgba(255,255,255,.16); font-family: 'Public Sans', system-ui, sans-serif }
.nx-foot .nx-fin { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)) }
@media (min-width: 700px) { .nx-foot .nx-fin { padding-left: max(2.5rem, env(safe-area-inset-left, 0px)); padding-right: max(2.5rem, env(safe-area-inset-right, 0px)) } }
@media (min-width: 1200px) { .nx-foot .nx-fin { padding-left: max(5rem, env(safe-area-inset-left, 0px)); padding-right: max(5rem, env(safe-area-inset-right, 0px)) } }
.nx-cols { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 2.2rem; padding-block: 3.2rem 2.2rem }
.nx-brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.4rem }
.nx-brand span { color: oklch(0.80 0.17 162) }
.nx-tag { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: .7rem; max-width: 30ch; line-height: 1.5 }
.nx-col h2 { font-family: 'Public Sans', system-ui, sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: oklch(0.80 0.17 162); margin: 0 0 .9rem }
.nx-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0 }
.nx-col a { color: rgba(255,255,255,.72); font-size: .92rem; text-decoration: none; overflow-wrap: anywhere }
.nx-col a:hover { color: oklch(0.80 0.17 162) }
.nx-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-block: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.6rem; font-size: .85rem; color: rgba(255,255,255,.6) }
.nx-bottom p { margin: 0 }
.nx-bottom div { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem }
.nx-bottom a { color: rgba(255,255,255,.8); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px }
.nx-bottom a:hover, .nx-bottom a[aria-current="page"] { color: oklch(0.80 0.17 162); text-decoration-color: oklch(0.80 0.17 162) }
@media (max-width: 1000px) { .nx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)) } .nx-cols > div:first-child { grid-column: 1 / -1 } }
@media (max-width: 520px) { .nx-cols { gap: 1.8rem 1.2rem } }
