/* Tilios public site. Brand colours are variables so a rebrand is a change here only. */
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/figtree-latin-600.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/figtree-latin-700.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/figtree-latin-800.woff2) format("woff2"); }

:root {
  --navy: #1b2a4a;
  --green: #4a8a6a;
  --green-ink: #2f6b4d;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eaf2ed;
  --text: #25324d;
  --muted: #5b6985;
  --line: #dde4ee;
  --card: #ffffff;
  --on-navy: #ffffff;
  --shadow: 0 1px 3px rgb(27 42 74 / .08);
  --radius: .5rem;
  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0f1830;
    --green-ink: #3fc592;
    --bg: #0b1226;
    --bg-soft: #111a33;
    --bg-tint: #10261f;
    --text: #d9e1f2;
    --muted: #9aa8c6;
    --line: #243152;
    --card: #131d38;
    --shadow: 0 1px 3px rgb(0 0 0 / .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: .25rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 800; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3 { color: #fff; } }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Wordmark: Figtree 800, dotless i with a green dot on the first i. */
.logo { white-space: nowrap; flex: none; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy); text-decoration: none; display: inline-block; position: relative; font-size: 2.3rem; }
.logo .d { position: relative; display: inline-block; }
/* The dot is the font's own "i" laid over the dotless one and clipped to the part above the stem (Figtree 800: stem top .5em, dot .5675–.74em above the baseline, baseline .85em down a line-height 1 box), so it lands where the font puts it whatever the browser does with letter-spacing or rounding. */
.logo .d::after { content: "i"; position: absolute; left: 0; top: 0; clip-path: inset(0 0 calc(100% - .316em) 0); }
.logo .g::after { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: #fff; } }
.band .logo, .footer-dark .logo { color: #fff; }

/* Header: the five menu items on a wide screen, a <details> menu (no JavaScript) on a narrow one. The current item has
   aria-current (set by the SSI of _osat/nav.*.html): "page" on its own page, "true" on a page under it. */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.nav-main { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; font-weight: 600; font-size: .98rem; }
.nav-main a, .nav-lang { color: var(--text); text-decoration: none; }
.nav-main a { padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-main a:hover, .nav-lang:hover { color: var(--green-ink); }
.nav-main a[aria-current] { color: var(--green-ink); border-bottom-color: currentColor; }
.nav-tools { display: flex; align-items: center; gap: 1.25rem; font-weight: 600; font-size: .98rem; }
.nav-menu { display: none; }
.nav-menu summary { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 1.2rem; height: 1.2rem; }
.nav-menu[open] summary { border-color: var(--green-ink); }
.nav-menu-panel { position: absolute; top: calc(100% + .25rem); left: 0; right: 0; display: grid; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgb(27 42 74 / .14); }
.nav-menu-panel a { padding: .8rem .9rem; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700; }
.nav-menu-panel a:hover { background: var(--bg-soft); }
.nav-menu-panel a[aria-current] { color: var(--green-ink); background: var(--bg-tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-menu summary { color: #fff; } }
@media (max-width: 60rem) {
  .nav-main { display: none; }
  .nav-tools { margin-left: auto; gap: .75rem; }
  .nav-menu { display: block; }
}
@media (max-width: 36rem) { .nav-tools > .nav-lang { display: none; } }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary { background: #2f6b4d; color: #fff; }
.btn-primary:hover { background: #285b41; }
.btn-ghost { color: var(--navy); border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { color: #fff; } }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; background: radial-gradient(60rem 30rem at 85% -10%, var(--bg-tint), transparent 70%), var(--bg); }
.hero .wrap { display: grid; gap: 3rem; grid-template-columns: 1.05fr 1fr; align-items: center; }
@media (max-width: 62rem) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 3rem; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.hero h1 em { font-style: normal; color: var(--green); }
.p-etusivu .hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.hero .kicker { margin-bottom: 1rem; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 34rem; margin: 1.25rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-link { margin-top: 1rem; font-weight: 700; }
.trust { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }

.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot .bar { display: flex; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.shot .bar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--line); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 11; background: var(--bg-soft); }

@media (max-width: 62rem) { .hero .shot { transform: none; } }

/* Free band */
.band { background: var(--navy); color: var(--on-navy); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; justify-content: space-between; padding: 1.75rem 0; }
.band p { margin: 0; font-size: 1.25rem; font-weight: 700; }
.band p span { color: #9fcdb4; }
.band small { display: block; font-weight: 600; opacity: .8; font-size: .95rem; margin-top: .15rem; }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 42rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }
.kicker { color: var(--green-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .75rem; }
.soft { background: var(--bg-soft); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--c, var(--green)) 45%, var(--line)); }
.card .ic { width: 2.9rem; height: 2.9rem; border-radius: var(--radius); background: var(--bg-tint); color: var(--green-ink); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .ic svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
/* Example sites: a screenshot on top of a card that is a link as a whole. */
.examples { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.card.example { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.card.example img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.example-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.example-name { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.example-line { color: var(--muted); }
.example-more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--green-ink); }
.card.example:hover .example-more, .card.example:focus-visible .example-more { text-decoration: underline; }
.examples-note { margin-top: 1.5rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .example-name { color: #fff; } }
/* A status mark: an outline in the text's colour, no fill. */
.chip { display: inline-block; margin-top: .85rem; padding: .1rem .5rem; border-radius: 4px; border: 1px solid currentColor; font-size: .8rem; font-weight: 700; color: var(--muted); }


/* Area colours: each product area has its own hue (card icon, kicker, ticks, mockup accent). */
.a-members  { --c: #4a8a6a; --ink: #2f6b4d; }
.a-sites    { --c: #2a8fa6; --ink: #1b6c7f; }
.a-acc      { --c: #d2603f; --ink: #a8442a; }
.a-billing  { --c: #3e6fd9; --ink: #2c55b0; }
.a-expenses { --c: #7a5bc7; --ink: #5e41a8; }
.a-meetings { --c: #d79a2b; --ink: #8a5f0c; }
.a-bookings { --c: #c2417c; --ink: #9c2b60; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [class*="a-"] { --ink: color-mix(in srgb, var(--c) 62%, #fff); } }
[class*="a-"] { --soft: color-mix(in srgb, var(--c) 13%, var(--card)); }
.card[class*="a-"] .ic { background: var(--soft); color: var(--ink); }
.kicker[class*="a-"], .spot[class*="a-"] .kicker { color: var(--ink); }
.spot[class*="a-"] .ticks li::before { background-color: var(--c); }
.chip.free { color: var(--ink, var(--green-ink)); }

/* Spotlight rows */
.spot { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 4.5rem; }
.spot:first-of-type { margin-top: 0; }
.spot.flip .shot { order: -1; }
@media (max-width: 52rem) { .spot { grid-template-columns: 1fr; gap: 1.5rem; } .spot.flip .shot { order: 0; } }
.spot h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.spot p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Steps */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: s; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }

/* Chant */
.chant { text-align: center; background: var(--bg-tint); }
.chant .big { font-size: clamp(2.6rem, 9vw, 6.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy); margin: 0; }
.chant .big span { display: block; }
.chant .big span:nth-child(2) { color: var(--green); }
.chant .big span:nth-child(3) { color: #c98417; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chant .big { color: #fff; } }
.chant p.sub { color: var(--muted); font-size: 1.25rem; margin: 1.5rem 0 2rem; }

.two { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 52rem) { .two { grid-template-columns: 1fr; gap: 2rem; } }
.two h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.two p { color: var(--muted); }
.two .ticks + p { margin-top: 1.25rem; font-weight: 700; }

/* Footer */
.footer-dark { background: var(--navy); color: #c9d3ea; padding: 3.5rem 0 2rem; }
.footer-dark .wrap { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 60rem) { .footer-dark .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-dark .wrap { grid-template-columns: 1fr; } }
.footer-dark h2 { color: #fff; margin: 0 0 .75rem; font-size: 1rem; letter-spacing: 0; }
.footer-company { margin-top: 1rem; }
.footer-dark a { color: #c9d3ea; }
.footer-dark ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-dark .legal { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 1.25rem; font-size: .9rem; opacity: .85; }

/* Very narrow screens */
@media (max-width: 30rem) {
  .btn { white-space: normal; text-align: center; }
  .site-header .wrap { gap: .5rem; }
  .logo { font-size: 2rem; }
  .cta-row .btn { width: 100%; }
  .hero h1 { overflow-wrap: anywhere; }
}

/* The one animation: the invoice run in the hero finishes row by row. */
.hero .shot svg { width: 100%; height: auto; aspect-ratio: 16 / 11; display: block; }
.hero .pill { transform-box: fill-box; transform-origin: center; animation: pill-in .45s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(.7s + var(--i) * .28s); }
@keyframes pill-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Closing chant: each "tilios" drops into place in turn, the dot of the last i last. */
.chant .big.arm span { opacity: 0; transform: translateY(-.6em); }
.chant .big.go span { animation: drop .55s cubic-bezier(.3,1.4,.5,1) both; }
.chant .big.go span:nth-child(2) { animation-delay: .35s; }
.chant .big.go span:nth-child(3) { animation-delay: .7s; }
@keyframes drop { from { opacity: 0; transform: translateY(-.6em); } to { opacity: 1; transform: none; } }
/* The last i of the closing chant: a dotless i whose dot drops in after the word. */
.chant .idot { position: relative; font-weight: inherit; display: inline-block; }
.chant .idot::after { content: "i"; position: absolute; left: 0; top: 0; clip-path: inset(0 0 calc(100% - .316em) 0); }
.chant .big.arm .idot::after { opacity: 0; transform: translateY(-1.2em); }
.chant .big.go .idot::after { animation: drop-dot .55s cubic-bezier(.3,1.7,.5,1) 1.35s both; }
@keyframes drop-dot { from { opacity: 0; transform: translateY(-1.2em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chant .big.arm span { opacity: 1; transform: none; } .chant .big.go .idot::after, .chant .big.arm .idot::after { animation: none; opacity: 1; transform: none; } }

/* Expenses mockup: the cursor hovers and presses "Hyväksy", the same button turns into the approved pill (played once by assets/site.js). */
.demo .p-btn, .demo .cur, .demo .b-t2 { opacity: 0; }
.demo .p-btn { transform-box: fill-box; transform-origin: center; }
.demo.arm .p-wait { opacity: 0; }
.demo.arm .p-btn { opacity: 1; }
.demo.go .p-btn { animation: demo-press 2.6s .4s both; }
.demo.go .b-bg { animation: demo-fill 2.6s .4s both; }
.demo.go .b-t1 { animation: demo-t1 2.6s .4s both; }
.demo.go .b-t2 { animation: demo-t2 2.6s .4s both; }
.demo.go .cur { animation: demo-cursor 2.6s .4s both; }
@keyframes demo-press { 0%, 50% { transform: scale(1); } 56% { transform: scale(1.04); } 62% { transform: scale(.93); } 68% { transform: scale(1.07); } 75%, 100% { transform: scale(1); } }
@keyframes demo-fill { 0%, 50% { fill: #e4e8ef; } 56%, 60% { fill: #d3d9e4; } 63% { fill: #c2cad9; } 66% { fill: #d3d9e4; } 74%, 100% { fill: #dff0e7; } }
@keyframes demo-t1 { 0%, 64% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes demo-t2 { 0%, 66% { opacity: 0; } 73%, 100% { opacity: 1; } }
@keyframes demo-cursor { 0% { opacity: 0; transform: translate(32px, 40px); } 10% { opacity: 1; } 52%, 80% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(0, 0); } }

/* Light box around the feature cards, to break up the page. */
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3.25rem); }
.panel .section-head { margin-bottom: 2.25rem; }

/* Pricing: one clear price per product card, a plain list, no pills. */
.prices { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .prices { grid-template-columns: repeat(4, 1fr); } }
.prices .card { display: flex; flex-direction: column; }
.prices .price { margin: 0 0 .9rem; color: var(--text); font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.prices .price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.prices .price small.year { display: block; margin-top: .3rem; font-size: .95rem; }
.prices .card ul { margin: 0 0 .9rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.prices .card p:last-child { font-size: .95rem; }
.price-notes { max-width: 48rem; margin-top: 2rem; color: var(--muted); }
.price-notes p { margin: 0 0 .6rem; }
.price-notes strong { color: var(--text); }
.prices .price small.next { display: block; margin-top: .3rem; font-size: .95rem; }
.prices .price small.next:empty { display: none; }

/* Price calculator: the choices on the left, the sum beside them (below on a phone). Thin borders, no shadows. */
.calc-link { margin: 1.75rem 0 0; }
.calc { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 60rem) { .calc { grid-template-columns: minmax(0, 1fr) 23rem; gap: 2.5rem; } .calc-result { position: sticky; top: 5.5rem; } }
.calc fieldset { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.calc fieldset:last-child { margin-bottom: 0; }
.calc legend { padding: 0; margin-bottom: .85rem; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc legend { color: #fff; } }
.calc small { display: block; color: var(--muted); font-size: .92rem; font-weight: 400; line-height: 1.45; }
.calc [hidden] { display: none; }

.calc-preset-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.calc-preset-list button { font: inherit; font-weight: 700; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); color: var(--text); cursor: pointer; }
.calc-preset-list button:hover { border-color: var(--green); }
.calc-preset-list button[aria-pressed="true"] { border-color: var(--green-ink); background: var(--bg-tint); color: var(--green-ink); }

.calc-option { border: 1px solid var(--line); border-radius: .5rem; background: var(--card); margin-bottom: .6rem; }
.calc-option:has(> .calc-check input:checked) { border-color: var(--green-ink); }
.calc-check { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.1rem; cursor: pointer; }
.calc-check input { flex: none; width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: #2f6b4d; }
.calc-check-text { flex: 1; min-width: 0; }
.calc-check-text strong { display: block; color: var(--text); }
.calc-check-price { flex: none; font-weight: 700; white-space: nowrap; }
.calc .calc-incl { color: var(--green-ink); font-weight: 700; margin-top: .25rem; }
.calc-sub { border-top: 1px solid var(--line); padding: .25rem 1.1rem .25rem 3.25rem; }
.calc-sub .calc-check { padding-inline: 0; }
@media (max-width: 36rem) { .calc-sub { padding-left: 1.1rem; } }

.calc-count { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; }
.calc-count + .calc-count { border-top: 1px solid var(--line); }
.calc-count label { flex: 1; min-width: 0; font-weight: 700; }
.calc-stepper { flex: none; display: flex; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); overflow: hidden; }
.calc-stepper:focus-within { border-color: var(--green-ink); }
.calc-stepper button { width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; }
.calc-stepper button:hover { background: var(--bg-tint); color: var(--green-ink); }
.calc-stepper input { width: 4rem; height: 2.75rem; border: 0; border-inline: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.calc-stepper input::-webkit-outer-spin-button, .calc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-stepper button:focus-visible, .calc-stepper input:focus-visible { outline-offset: -3px; }
.calc-more { margin-top: .5rem; border-top: 1px solid var(--line); }
.calc-more summary { padding: .85rem 0; font-weight: 700; color: var(--green-ink); cursor: pointer; }

.calc-result { border: 1px solid var(--line); border-radius: .5rem; background: var(--card); padding: 1.5rem; }
.calc-result p { margin: 0; }
.calc-result-title { font-weight: 800; color: var(--muted); }
.calc-total { font-size: clamp(2.6rem, 6vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); margin-top: .25rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-total { color: #fff; } }
.calc-total small { display: inline; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.calc-vat { color: var(--muted); font-size: .95rem; margin-top: .35rem; }
.calc-lines { list-style: none; margin: 1.25rem 0; padding: 0; border-top: 1px solid var(--line); }
.calc-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.calc-line-name { min-width: 0; font-weight: 600; }
.calc-line-sum { flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-lines .calc-cap, .calc-lines .calc-cap .calc-line-sum { color: var(--green-ink); }
.calc-result .calc-note { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.calc-result .calc-year { color: var(--green-ink); font-weight: 700; }
.calc-result .btn { width: 100%; margin-top: .6rem; }

/* On a phone the choices are long and the result is below them: the sum stays at the bottom of the screen meanwhile. */
.calc-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: baseline; gap: .5rem; margin: 1rem -1rem 0; padding: .7rem 1rem; background: var(--card); border-top: 1px solid var(--line); }
.calc-bar span { font-weight: 700; color: var(--muted); margin-right: auto; }
.calc-bar strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.calc .calc-bar small { display: inline; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-bar strong { color: #fff; } }
@media (min-width: 60rem) { .calc-bar { display: none; } }
@media (max-width: 36rem) { .calc-check { flex-wrap: wrap; } .calc-check-text { flex-basis: calc(100% - 2.15rem); } .calc-check-price { flex-basis: 100%; padding-left: 2.15rem; } }
.calc-option.is-included > .calc-check .calc-check-price { text-decoration: line-through; color: var(--muted); font-weight: 600; }

/* Product and keyword pages: a plain hero with the page's one h1, then sections of text, spotlights and questions. */
.page-hero { padding: 3.5rem 0 3rem; background: radial-gradient(50rem 24rem at 90% -20%, var(--bg-tint), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 48rem; }
.page-hero .lede { max-width: 44rem; }
.page-hero .price-line { font-weight: 700; color: var(--text); margin: -1rem 0 1.75rem; }
.page-hero .for-whom { margin-top: 1.25rem; color: var(--muted); font-size: .98rem; max-width: 44rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 1rem; }
.prose * + h2 { margin-top: 2.75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin: 0 0 1rem; }
.spot h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }

/* Price card: the link to the product's own page sits at the bottom of the card. */
.card-more { margin-top: auto !important; padding-top: .9rem; font-weight: 700; }
.price-box { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .price-box { grid-template-columns: minmax(0, 22rem) 1fr; } }
.price-box .prices { grid-template-columns: 1fr; }

/* The four products on the front page: each card is a link to its page as a whole. */
.link-cards { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .link-cards { grid-template-columns: repeat(4, 1fr); } }
/* Five cards (the products): three and two on a wide screen, both rows filled; two by two and the last one wide on a narrower one. */
@media (min-width: 36rem) and (max-width: 59.99rem) { .cards.five > :last-child { grid-column: 1 / -1; } }
@media (min-width: 60rem) {
  .cards.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards.five > * { grid-column: span 2; }
  .cards.five > :nth-child(n+4) { grid-column: span 3; }
}
.link-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.link-card .price { margin: 0 0 .75rem; color: var(--text); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.link-card .price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.link-card ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .3rem; color: var(--muted); }
.link-card-more { margin-top: auto; font-weight: 700; color: var(--ink, var(--green-ink)); }
.link-card:hover .link-card-more, .link-card:focus-visible .link-card-more { text-decoration: underline; }

/* Ready-made combinations under the products: one row each, the sum at the end, a link to the calculator. */
.combos { margin-top: 2.5rem; }
.combos h3 { font-size: 1.25rem; margin-bottom: .9rem; }
.combos ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.combos li a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; }
.combos li a:hover { border-color: var(--green-ink); }
.combos li strong { grid-column: 1; }
.combos li span { grid-column: 1; color: var(--muted); font-size: .95rem; }
.combos li .combo-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--text); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.combos li .combo-price span { color: inherit; font-size: inherit; }
.combos > p { font-weight: 700; }

/* Questions and answers: <details>, open one at a time by the reader, no JavaScript. */
.faq h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }
.faq-list { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.1rem; letter-spacing: 0; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--green-ink); }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 1.1rem; max-width: 44rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* "Sopii yhteen": the other products in a row of plain links with one sentence each. */
.related { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); margin: 0; padding: 0; list-style: none; }
.related li { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.related a { font-weight: 700; }
.related p { margin: .3rem 0 0; color: var(--muted); font-size: .98rem; }
.related-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
