/* loistava.com — site stylesheet
 * Tokens, type scale, layout and components. No framework.
 * Element selectors are prefixed with .site so they outrank the global
 * reset that the Answe widget stylesheet (qstio_widget.css) injects. */

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #141414;
  --muted: #6B6B6B;
  --line: #E3DFD6;
  --accent: #0085A1;
  --accent-ink: #005F74;
  --accent-soft: #E3F1F4;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  --gutter: 16px;
  --section: 64px;
  --radius: 6px;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --section: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */
.site h1, .site h2, .site h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 0.5em; }
.site h1 { font-size: 2.5rem; line-height: 1.05; }
.site h2 { font-size: 2rem; line-height: 1.1; }
.site h3 { font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 768px) {
  .site h1 { font-size: 3.75rem; }
  .site h2 { font-size: 2.75rem; }
  .site h3 { font-size: 1.75rem; }
}
.site p { margin: 0 0 1.25em; }
.site ul, .site ol { margin: 0 0 1.25em; padding-left: 1.25em; }
.site ul li { list-style: disc; margin-bottom: 0.4em; }
.site ol li { list-style: decimal; margin-bottom: 0.4em; }
.site a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; font-weight: inherit; }
.site a:hover { color: var(--ink); text-decoration: underline; font-weight: inherit; }
.site strong { font-weight: 700; }
.site .lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 36em; }
@media (min-width: 768px) { .site .lead { font-size: 1.375rem; } }
.site .muted { color: var(--muted); }
.site .small { font-size: 0.9375rem; }
.site .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.75rem; }
.site .label.accent { color: var(--accent-ink); }
.site .prose { max-width: 40em; }
.site .prose h2 { margin-top: 2em; }
.site .prose .label + h2, .site .prose h2:first-child { margin-top: 0; }
.site .prose h3 { margin-top: 1.5em; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }
.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-sidebar { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
}
.site .section-head { margin-bottom: 2.5rem; max-width: 36em; }
.site .section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- header ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.header { padding: 1.25rem 0; }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.site .brand { font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; color: var(--ink); margin-right: auto; white-space: nowrap; }
.site .brand:hover { color: var(--accent-ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; font-size: 1rem; font-weight: 600; }
.site .nav a { color: var(--ink); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site .nav a:hover, .site .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
@media (max-width: 767px) {
  .header .wrap { align-items: flex-start; }
  .nav { width: 100%; font-size: 0.9375rem; gap: 0.25rem 1rem; }
  .site .nav .btn { margin-left: auto; }
}

/* ---------- buttons ---------- */
.site .btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1; padding: 0.9rem 1.4rem; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent); white-space: nowrap; }
.site .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.site .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.site .btn.ghost:hover { background: var(--ink); color: #fff; }
.site .nav .btn { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }
.site .nav a.btn, .site .nav a.btn:hover { color: #fff; border-bottom: 1px solid var(--accent); }
.site .nav a.btn:hover { border-bottom-color: var(--accent-ink); }
.site .arrow { font-weight: 700; text-decoration: none; }
.site .arrow::after { content: " \2192"; }
.site .arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--section) * 0.75) 0 var(--section); }
.site .hero h1 { max-width: 14em; margin-bottom: 1.25rem; }
.site .hero .lead { margin-bottom: 0; }
.hero.compact { padding-bottom: calc(var(--section) * 0.5); }

/* ---------- clients ---------- */
.clients { padding: 2rem 0; border-top: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2.5rem; }
.clients .logo { display: block; width: auto; height: 1.5rem; }
.clients .logo-link { display: block; line-height: 0; text-decoration: none; border: 0; }
.clients .logo-link:hover .logo { opacity: 0.7; }
.clients .logo-arden { height: 1.05rem; }
.clients .logo-operandi { height: 1.6rem; }
@media (min-width: 768px) { .clients .logo { height: 1.5rem; } .clients .logo-arden { height: 1.15rem; } .clients .logo-operandi { height: 1.6rem; } }
.site .clients .label { margin: 0; }
.clients .name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); white-space: nowrap; }
@media (min-width: 768px) { .clients .name { font-size: 1.75rem; } }
.clients .name.anon { color: var(--muted); font-size: 1.05rem; white-space: normal; flex-basis: 100%; margin-top: 0.25rem; }
@media (min-width: 768px) { .clients .name.anon { font-size: 1.15rem; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; }
.site .card h3 { margin-bottom: 0.5rem; }
.site .card p { margin-bottom: 1rem; }
.site .card p:last-child, .site .card .arrow { margin-bottom: 0; margin-top: auto; }
.site .card .label { margin-bottom: 1rem; }
.site .case .client { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; margin-bottom: 0.35rem; }
.site .case .title { font-weight: 600; margin-bottom: 0.75rem; }
.site .case .tags { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: auto; }

/* ---------- pillars ---------- */
.site .pillar .label { color: var(--accent-ink); }
.site .pillar h3 { margin-bottom: 0.75rem; }

/* ---------- steps / facts ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } .grid-sidebar .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--accent); padding-top: 1rem; }
.site .step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.site .step h3::before { counter-increment: step; content: counter(step, decimal-leading-zero) "  "; font-family: var(--font-mono); font-weight: 400; color: var(--accent-ink); font-size: 0.875rem; letter-spacing: 0.08em; }
.site .step p { margin: 0; color: var(--muted); font-size: 1rem; }
.facts { display: grid; gap: 0; }
.fact { border-top: 1px solid var(--line); padding: 1.25rem 0; display: flex; align-items: baseline; gap: 1.25rem; }
.fact:last-child { border-bottom: 1px solid var(--line); }
.site .fact strong { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1; min-width: 4.5ch; }
.site .fact span { color: var(--muted); font-size: 1rem; }
.site .checklist { padding-left: 0; }
.site .checklist li { list-style: none; padding-left: 1.75em; position: relative; margin-bottom: 0.75em; }
.site .checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 1em; height: 1em; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); }
.site .checklist li strong { display: block; }

/* ---------- price ---------- */
.site .price { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--accent-ink); margin: 0 0 0.5rem; }

/* ---------- form panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; }
@media (min-width: 768px) { .panel { padding: 2.5rem; } }
.site .panel h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .site .panel h2 { font-size: 2.25rem; } }
.site .panel .lead { font-size: 1.125rem; margin-bottom: 1.5rem; }
.site .panel blockquote.qstio-embed { margin: 0; }
.site .panel .small { margin: 1rem 0 0; color: var(--muted); }

/* ---------- portrait ---------- */
.site .portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .site .portrait { width: 200px; height: 200px; } }

/* ---------- contact block ---------- */
.site .contact-lines { list-style: none; padding: 0; margin: 0; font-size: 1.125rem; }
.site .contact-lines li { list-style: none; margin-bottom: 0.5rem; }
.site .contact-lines a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: #fff; padding: var(--section) 0; }
.site .cta h2 { color: #fff; margin-bottom: 0.75rem; }
.site .cta p { color: rgba(255,255,255,0.75); max-width: 32em; margin-bottom: 0; }
.site .cta .actions { margin-top: 1.75rem; }
.site .cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.site .cta .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.site .cta a:not(.btn) { color: #fff; }

/* ---------- footer ---------- */
.footer { padding: 3rem 0; font-size: 0.9375rem; color: var(--muted); }
.footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site .footer strong { color: var(--ink); display: block; margin-bottom: 0.5rem; }
.site .footer ul { list-style: none; padding: 0; margin: 0; }
.site .footer li { list-style: none; margin-bottom: 0.35rem; }
.site .footer a { color: var(--ink); text-decoration: none; }
.site .footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.site .footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 0.5rem; }

/* ---------- misc ---------- */
.site hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.site img { max-width: 100%; height: auto; display: block; }
.site .faq p { margin-bottom: 1.5em; max-width: 40em; }
.site .faq strong { display: block; margin-bottom: 0.25em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* data tables (tietosuoja) */
.site .prose table.data { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95em; }
.site .prose table.data th, .site .prose table.data td { text-align: left; vertical-align: top; padding: 0.6em 0.75em 0.6em 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
.site .prose table.data th { font-weight: 600; }
.site .prose table.data code { font-size: 0.9em; word-break: break-all; }
@media (max-width: 640px) { .site .prose table.data, .site .prose table.data thead, .site .prose table.data tbody, .site .prose table.data tr, .site .prose table.data th, .site .prose table.data td { display: block; }
  .site .prose table.data thead { display: none; }
  .site .prose table.data tr { padding: 0.5em 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
  .site .prose table.data td { border: 0; padding: 0.15em 0; } }
