/* Hallmark · shape: single page brief (hero, services, pricing, reasons, steps, questions, contact) · genre: modern-minimal · theme: custom (art direction from the owner's brief) · job: hire · idea: "a one-person IT expert who shows the work and the price in plain Finnish" · vibe: "nordic, calm, technical, approachable, honest, small"
 * paper: oklch(98.3% 0.005 245) light content, oklch(17.2% 0.027 263) navy bands · accent: oklch(79.5% 0.132 181) turquoise, deep oklch(48% 0.088 186) on light · display: system grotesk (Segoe UI Variable Display) · body: system grotesk (Segoe UI Variable Text) · hero: navy split, head and actions left, an unDraw workspace illustration right, a soft curve into the light services · nav: sticky navy bar, wordmark left, four links and a quiet outlined contact action right, menu under 60rem · footer: navy mast, wordmark and one line beside the section links and the privacy page · imagery: four unDraw illustrations (hero, shield, steps, 404), recoloured · signature: the price set large, 70 €/h + alv, right after the services
 * axes: light/grotesk-system/chromatic-turquoise · posture: restrained · contrast: pass · fold: pass · copy: owner's brief (verbatim where given) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S3 R5 V3 · weakest: S, the section run is fixed by the brief; made it specific with the real price set large, the B2B line under the actions and a diagram of the exact stack (Entra ID, Intune, MFA) instead of stock art */
/* Hallmark · waive 1 · system grotesk as display face · the owner's brief asks that no content depends on an external font service */
/* Hallmark · waive 42 · nav: wordmark left, four links, an outlined contact action right · the owner's brief fixes this exact navigation */
/* Hallmark · dismissed 3 · the services icons sit inline beside each heading, no tile; eight services in a 4 x 2 grid set by the owner */
/* Hallmark · dismissed 8 · hero, 3 x 2 services, two price cards, three steps, questions and a navy contact band are the sections and order CLAUDE.md §2 and §3 prescribe; specificity comes from the real stack diagram and the price set large */
/* Hallmark · finish-review: subagent · 5 findings · 4 resolved 1 dismissed (8) · gap: service copy stays generic until the owner confirms concrete tasks */
/* Hallmark · waive 80 · four unDraw illustrations (workspace hero, shield, complete the steps, 404 dog), licensed and recoloured to the navy and turquoise palette · the owner picked each unDraw image and its place: hero, Miksi Tenantti, steps and the 404 page */
/* Hallmark · dismissed F6 · .price__vat and .price__amount--text hold words (+ alv, Tarjouksen mukaan), the figure itself is tabular */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-ink); }
h2 { font-size: var(--text-section); font-weight: 700; line-height: 1.08; letter-spacing: var(--tracking-display); max-width: 22ch; }
h3 { font-size: var(--text-title); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
a:hover { color: var(--color-accent-strong); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn--outline { background: transparent; border-color: var(--color-rule); color: var(--color-ink); }
.btn--outline:hover { background: var(--color-paper-2); border-color: var(--color-muted); color: var(--color-ink); }

.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent-strong); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.text-link:hover { color: var(--color-accent-strong); text-decoration-color: currentColor; }
.text-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

.fill { padding: 0.15em 0.3em; border: 1px dashed var(--color-muted); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink); text-decoration: none; }
.brand:hover { color: var(--color-ink); }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__mark path { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; }
.brand__mark circle { fill: var(--color-ink); }
.brand__word { font: 700 1.375rem/1 var(--font-display); letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky-nav); border-bottom: 1px solid var(--color-rule); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: var(--space-xl); }
.site-nav ul { display: flex; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-input); color: var(--color-ink-2); font-size: var(--text-md); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.site-nav ul a:hover { color: var(--color-ink); background: var(--color-paper-2); }
.site-nav ul a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.site-nav__cta { min-height: 44px; }

.nav-toggle { display: none; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: transparent; color: var(--color-ink); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.nav-toggle:hover { background: var(--color-paper-2); }
.nav-toggle:active { background: var(--color-paper-3); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-flex; }
  .site-header__bar { flex-wrap: wrap; min-height: 64px; }
  .js .site-nav { display: none; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-md); padding-bottom: var(--space-lg); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { width: 100%; min-height: 48px; font-size: var(--text-lg); }
  .js .site-nav.is-open { display: flex; }
  .site-nav__cta { min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: var(--space-3xl); padding-bottom: var(--space-4xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: var(--text-display); font-weight: 700; line-height: 1.04; letter-spacing: var(--tracking-display); max-width: 18ch; }
.hero__lede { margin-top: var(--space-lg); max-width: 44ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

.hero__art { margin: 0; justify-self: end; width: 100%; max-width: 600px; }
.hero__art img { width: 100%; height: auto; }

.hero__curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; }
.hero__curve path { fill: var(--color-day); }

@media (max-width: 60rem) {
  .hero { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero__art { justify-self: start; max-width: 420px; }
  .hero__curve { height: 32px; }
}
@media (max-width: 40rem) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-gap-s); }
.section__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.section__lede { max-width: 60ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.55; }

/* Services: 3 x 2 */
.services { padding-top: var(--space-3xl); }
.service-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.service { grid-column: span 3; }
.service { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-card); }
.service h3 { display: flex; align-items: flex-start; gap: var(--space-sm); }
.service h3 svg { width: 28px; height: 28px; margin-top: -0.1em; flex-shrink: 0; fill: none; stroke: var(--color-accent-strong); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--color-ink-2); }
@media (max-width: 60rem) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service { grid-column: auto; } }
@media (max-width: 40rem) { .service-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } .service { padding: var(--space-lg); } }

/* Pricing */
.pricing { padding-top: var(--space-xl); }
.price-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg); }
.price { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-card); box-shadow: var(--shadow-card); }
.price--main { border-color: var(--color-accent-strong); }
.price__amount { font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); font: 700 clamp(3.25rem, 4vw + 1.5rem, 5.5rem)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.price__vat { font-size: var(--text-2xl); letter-spacing: -0.01em; color: var(--color-ink-2); }
.price__amount--text { font-size: var(--text-3xl); min-height: 1.6em; align-items: flex-end; }
.price__note { color: var(--color-muted); }
.price__list { display: grid; gap: var(--space-xs); margin: var(--space-xs) 0 0; padding: var(--space-md) 0 0; border-top: 1px solid var(--color-rule); list-style: none; }
.price__list li { display: flex; gap: var(--space-xs); color: var(--color-ink-2); }
.price__list li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--color-accent-strong); }
.price .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 60rem) { .price-grid { grid-template-columns: minmax(0, 1fr); } .price { padding: var(--space-lg); } }

/* Benefits: pale turquoise-grey band */
.benefits { background: var(--color-paper-2); padding-block: var(--section-gap); }
.benefits__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.benefits__art { display: none; width: 100%; max-width: 160px; height: auto; }
@media (min-width: 75rem) { .benefits__head { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); } .benefits__art { display: block; grid-column: 3; grid-row: 1; justify-self: end; } }
.benefit-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) 0; border-left: 1px solid var(--color-rule); font-size: var(--text-xl); font-weight: 600; line-height: 1.3; color: var(--color-ink); }
.benefit-list li:first-child { padding-left: 0; border-left: 0; }

@media (max-width: 60rem) {
  .benefits { padding-block: var(--section-gap-s); }
  .benefits__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-items: start; margin-bottom: var(--space-xl); }
  .benefits__art { display: block; max-width: 96px; }
  .benefit-list { grid-template-columns: minmax(0, 1fr); }
  .benefit-list li { padding: var(--space-md) 0; border-left: 0; border-top: 1px solid var(--color-rule); }
  .benefit-list li:first-child { border-top: 0; }
}

/* Steps */
.steps { padding-block: var(--section-gap); }
.steps__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-2xl); align-items: end; }
.steps__art { width: 100%; height: auto; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step-list li { counter-increment: step; display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 2px solid var(--color-ink); }
.step-list li::before { content: counter(step, decimal-leading-zero); font: 700 var(--text-3xl)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-accent-strong); letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.step-list p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: none; }
@media (max-width: 60rem) { .steps__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .steps__art { max-width: 260px; } .step-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-xl); } }

/* FAQ */
.faq { padding-top: var(--section-gap-s); padding-bottom: var(--section-gap); border-top: 1px solid var(--color-rule); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.faq__grid h2 { position: sticky; top: 104px; }
.faq__list { border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md); font-size: var(--text-title); font-weight: 600; line-height: 1.3; color: var(--color-ink); cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; margin-right: var(--space-2xs); border-right: 2px solid var(--color-accent-strong); border-bottom: 2px solid var(--color-accent-strong); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-short) var(--ease-in-out); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--color-accent-strong); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 60ch; }
@media (max-width: 60rem) { .faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } .faq__grid h2 { position: static; } }

/* Contact */
.contact { padding-block: var(--section-gap); background: var(--color-paper-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; }
.contact h2 { font-size: var(--text-display-s); max-width: 16ch; }
.contact__body { display: grid; gap: var(--space-xl); }
.contact__action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.contact__email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; transition: color var(--dur-short) var(--ease-out); }
.contact__email a:hover { color: var(--color-accent); }
.contact__email a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 60rem) { .contact { padding-block: var(--section-gap-s); } .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-2xl) var(--space-xl); border-top: 1px solid var(--color-rule); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: var(--space-2xl); align-items: start; }
.site-footer__brand { display: grid; gap: var(--space-sm); }
.site-footer__brand p, .site-footer__legal p { color: var(--color-ink-2); font-size: var(--text-sm); }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.site-footer a:not(.brand):hover { color: var(--color-accent); text-decoration: underline; }
.site-footer a:not(.brand):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.site-footer__legal { display: grid; gap: var(--space-2xs); justify-items: start; }
@media (max-width: 60rem) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

/* ---------- Prose page (tietosuoja) ---------- */
.prose { padding-block: var(--space-3xl) var(--section-gap-s); }
.prose__inner { max-width: 72ch; }
.prose h1 { font-size: var(--text-display-s); font-weight: 700; line-height: 1.08; letter-spacing: var(--tracking-display); margin-bottom: var(--space-lg); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-2xl); margin-bottom: var(--space-sm); max-width: none; }
.prose p, .prose li { line-height: 1.7; color: var(--color-ink-2); }
.prose p + p { margin-top: var(--space-sm); }
.prose ul { padding-left: var(--space-lg); }
.prose a { color: var(--color-accent-strong); }
.draft-note { margin-bottom: var(--space-xl); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: none; }
.back-link:hover { color: var(--color-ink); text-decoration: underline; }
.back-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

/* 404 */
.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--space-2xl); align-items: center; min-height: 70dvh; padding-block: var(--space-3xl); }
.notfound__art { width: 100%; height: auto; }
@media (max-width: 60rem) { .notfound { grid-template-columns: minmax(0, 1fr); align-content: center; } .notfound__art { max-width: 240px; } }
.notfound h1 { font-size: var(--text-display-s); font-weight: 700; line-height: 1.08; letter-spacing: var(--tracking-display); }
.notfound p { margin-top: var(--space-md); margin-bottom: var(--space-xl); color: var(--color-ink-2); font-size: var(--text-lead); }

/* ---------- One reveal, visible without script ---------- */
/* Reveal stagger by position, so no inline style attributes are needed (strict CSP: style-src 'self') */
[data-reveal]:nth-child(2) { --i: 1; }
[data-reveal]:nth-child(3) { --i: 2; }
[data-reveal]:nth-child(4) { --i: 3; }
[data-reveal]:nth-child(5) { --i: 4; }
[data-reveal]:nth-child(6) { --i: 5; }
[data-reveal]:nth-child(7) { --i: 6; }
[data-reveal]:nth-child(8) { --i: 7; }
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Hero entrance: one settle on load, staggered 60ms, pure CSS so it runs without JS and ends fully visible */
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } }
.hero__text > *, .hero__art { animation: hero-rise 600ms var(--ease-out) both; }
.hero__text > :nth-child(2) { animation-delay: 60ms; }
.hero__text > :nth-child(3) { animation-delay: 120ms; }
.hero__art { animation-delay: 180ms; }

/* FAQ: the answer eases in when a question opens instead of popping */
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
.faq details[open] p { animation: faq-in var(--dur-short) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > *, .hero__art, .faq details[open] p { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}
