/* Montserrat, hosted locally (variable font, weights 100-900). Licence: assets/fonts/LICENSE-Montserrat.txt */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  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: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  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;
}

/* unlimited.fi raw version · site styles
   Layout: light, single-theme page (the brief rules out dark themes). One column of generous
   sections, max 1120px wide, alternating white and a purple-tinted off-white. Purple carries
   the structure, pink is a small accent only. */

:root {
  /* Brand colours from graafinen-ohje.pdf */
  --ink: #2c1e4a;        /* dark purple: body text */
  --purple: #481f66;     /* primary purple: headings, buttons */
  --blue: #19366c;       /* secondary: links */
  --pink: #ff45e1;       /* accent: marks and hover only, never body text */
  --bg: #ffffff;
  --bg-soft: #f6f2fa;    /* purple-tinted off-white for alternating bands */
  --line: #e4dcef;
  --muted: #5f5278;      /* secondary text, purple-grey */
  --todo: #fff3a8;       /* review marker for facts that are missing or unchecked */

  /* Type: Lastica is the brand headline face but has no web licence yet; Montserrat
     (the brand's secondary face) stands in until the graphic identity review decides. */
  --font-head: "Lastica", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --max: 1120px;
  --radius: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--purple); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.05rem, 1.2rem + 3.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--pink); border-radius: 2px; }
.stack { display: grid; gap: 1.25rem; }
.stack > * { min-width: 0; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1rem; }

/* Review marker: anything Juha must supply or check. Remove the class at launch. */
.todo { background: var(--todo); border-bottom: 2px dotted var(--purple); padding: 0 0.2em; border-radius: 3px; }

/* Raw-version banner */
.preview-banner {
  background: var(--todo); color: var(--ink); font-size: 0.85rem; text-align: center;
  padding-block: 0.45rem; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--purple); font-weight: 600; letter-spacing: 0.02em; }
.brand img { width: 46px; height: 46px; border-radius: 6px; }
.brand span { font-size: 0.95rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--pink); }
.nav a.btn { color: #fff; border-bottom: 2px solid var(--purple); padding: 0.6rem 1.1rem; }
.nav a.btn:hover { border-bottom-color: var(--ink); }
.nav .lang { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; font: inherit; color: var(--purple); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 2px solid var(--purple); cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-secondary { background: transparent; color: var(--purple); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--purple); border-color: #fff; }
.btn-light:hover { background: var(--bg-soft); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Layout */
.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section.soft { background: var(--bg-soft); }
.section.purple { background: var(--purple); color: #fff; }
.section.purple h2, .section.purple h3 { color: #fff; }
.section.purple .eyebrow { color: #fff; }
.section.purple a { color: #fff; }
.section.purple .contact-card a { color: var(--blue); }
.section-head { display: grid; gap: 0.9rem; max-width: 46em; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cols-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero .stack { gap: 1.4rem; }
.hero-figure { margin: 0; justify-self: end; width: min(100%, 420px); }
.hero-figure img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-figure figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.hero-figure figcaption strong { color: var(--ink); }
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1rem; max-width: var(--max); }
.page-hero .stack { max-width: 46em; }
.page-hero.with-figure .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.page-hero.with-figure img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: min(100%, 380px); justify-self: end; }

/* Situations and worries */
.situations { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 3vw, 3rem); align-items: end; }
.situations .mascot { width: min(240px, 40vw); justify-self: end; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.plain-list li { display: grid; gap: 0.25rem; padding-left: 1.4rem; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 10px; background: var(--pink); border-radius: 2px; }
.plain-list strong { color: var(--purple); }
.closing { max-width: 46em; margin-top: 1.5rem; font-size: 1.1rem; }

.qa { display: grid; gap: 1.5rem; }
.qa-item { display: grid; gap: 0.65rem; align-content: start; padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.qa-item h3 { font-size: 1.22rem; line-height: 1.3; }
.qa-item .answer-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Why us */
.why { display: grid; gap: 1.5rem; }
.why-item { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 3px solid var(--purple); }
.why-item h3 { font-size: 1.15rem; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 700; font-family: var(--font-head); font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.steps-aside { display: grid; gap: 1.25rem; justify-items: start; }
.steps-aside .mascot { width: min(260px, 60vw); }
.callout { padding: 1.25rem 1.5rem; border-left: 4px solid var(--pink); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }

/* Standards */
.standards { list-style: none; margin: 0; padding: 0; }
.standard { display: grid; gap: 0.35rem; padding: 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.standard .code { font-family: var(--font-head); font-weight: 700; color: var(--purple); font-size: 1.25rem; letter-spacing: 0.02em; }
.standard .name { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.standard p { font-size: 0.95rem; }

/* Proof */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1.5rem; }
.figure { display: grid; gap: 0.2rem; }
.figure .num { font-family: var(--font-head); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 700; color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; }
.figure .label { color: var(--muted); font-weight: 500; }
.logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; align-items: center; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.logos img { height: 2.25rem; width: auto; max-width: 100%; }
/* Logos share one height; these two even out how big they look next to the others */
.logos img.logo-large { height: 3.75rem; }   /* a square mark, or one with much empty space around the letters */
.logos img.logo-upright { height: 4.5rem; }  /* taller than wide, with fine detail */
.logos img.logo-dense { height: 1.75rem; }   /* a heavy wordmark cropped tight to the letters */

/* Free */
.offer { display: grid; gap: 0.75rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); align-content: start; }
.offer .btn { justify-self: start; margin-top: 0.5rem; }

/* Contact block */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-card { display: grid; gap: 0.5rem; background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { color: var(--purple); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.contact-line code { font-family: inherit; font-size: 1.02rem; font-weight: 600; user-select: all; }
.copy-btn { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--purple); background: #fff; color: var(--purple); cursor: pointer; }
.copy-btn:hover { background: var(--bg-soft); }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person .name { font-weight: 700; color: var(--purple); }
form.message { display: grid; gap: 0.9rem; }
form.message label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
form.message input, form.message textarea {
  font: inherit; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
form.message input:focus, form.message textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(255, 69, 225, 0.25); }
form.message textarea { min-height: 7.5rem; resize: vertical; }
form.message .btn { justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { font-size: 0.92rem; min-height: 1.4em; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem; }
.member { display: grid; gap: 0.6rem; align-content: start; }
.member img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 360px; }
.member .role { color: var(--muted); font-weight: 500; }
.member .contact-line + .contact-line { margin-top: -0.4rem; }
.photo-wide { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-family: var(--font-head); font-weight: 700; color: var(--purple); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }

/* Services */
.service { display: grid; gap: 0.6rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); align-content: start; }
.service h3 { font-size: 1.15rem; }

/* Video slot: ready for short embeds later. Replace the inner link with the player when the
   video exists. Kept out of the raw version so the page carries nothing half-finished. */
.video-slot { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); padding: 1.5rem; text-align: center; }

/* Mascots on inner pages (added 2026-10-26): one per page, small, never the main visual */
.page-hero.with-figure.wide-figure .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero.with-figure.wide-figure img { aspect-ratio: 3 / 2; width: 100%; }
.page-hero.with-mascot .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero-mascot { width: min(240px, 45vw); justify-self: end; }
.head-with-mascot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; }
.head-with-mascot .mascot { width: min(200px, 38vw); margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.price-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.price-row .mascot { width: min(200px, 45vw); }
.photo-square { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 800px) {
  .page-hero.with-figure.wide-figure .wrap, .page-hero.with-mascot .wrap, .price-row { grid-template-columns: 1fr; }
  .hero-mascot, .price-row .mascot { justify-self: start; width: min(180px, 45vw); }
  .head-with-mascot .mascot { width: min(130px, 30vw); }
}

.member-placeholder { aspect-ratio: 4 / 5; width: 100%; max-width: 360px; border-radius: var(--radius); background: var(--bg); border: 1px dashed var(--line); display: grid; place-items: center; }
.team-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.team-mini li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.85rem; align-items: center; font-size: 0.95rem; }
.team-mini img, .avatar-placeholder { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.avatar-placeholder { display: grid; place-items: center; background: var(--bg-soft); font-size: 0.8rem; }

.page-hero-tight { border-bottom: 0; padding-bottom: 0; }
.page-hero-tight + .section { padding-top: 1.75rem; }
.intro-text { max-width: 46em; margin-top: 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; color: var(--muted); font-size: 0.85rem; display: grid; gap: 0.4rem; }

/* Responsive */
@media (max-width: 800px) {
  .hero .wrap, .page-hero.with-figure .wrap, .steps-wrap, .contact { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; width: min(100%, 300px); }
  .page-hero.with-figure img { justify-self: start; }
  .situations { grid-template-columns: 1fr; }
  .situations .mascot { justify-self: center; }
}

/* Narrow screens: the nav no longer fits beside the logo (six links since 2026-11-10).
   Without JavaScript the links wrap onto their own rows under the logo, and the header
   scrolls away with the page instead of staying stuck to the top.
   With JavaScript (site.js puts class "js" on <html>) they fold behind the menu button. */
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-basis: 100%; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .nav a { padding: 0.5rem 0; }
  html:not(.js) .site-header { position: static; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0.25rem; padding: 0.75rem var(--gutter-r) 1rem var(--gutter-l); }
  .js .nav.open { display: flex; }
  .js .nav-toggle { display: inline-block; }
}

/* Price + schedule columns: align headings to the top even when one text is longer (2026-11-10) */
.price-row > .stack { align-self: start; }

/* 2026-11-11: navigation + above-the-fold peek */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 80px; }
.jump-links { color: var(--muted); margin-top: 0.75rem; line-height: 1.9; }
/* Compact hero so the next band (kysymykset: eyebrow, heading, top of the cards) shows on a laptop screen */
.hero { padding-block: clamp(2rem, 1.25rem + 2vw, 3rem); }
.hero .stack { gap: 1.15rem; }
.hero-figure { width: min(100%, 330px); }
.hero-figure img { aspect-ratio: 5 / 6; object-position: center 20%; }
.hero-figure figcaption { margin-top: 0.6rem; }
#kysymykset { padding-top: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
#kysymykset .section-head { margin-bottom: clamp(1.25rem, 0.75rem + 1.5vw, 2rem); }
.page-hero-tight .stack { max-width: none; }

/* Utilities: replace the inline style attributes of the concept, so the site needs no inline CSS */
.mt-xs { margin-top: 0.5rem; }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 1.5rem; }
.mt-l { margin-top: 2.5rem; }
.align-start { align-content: start; }
.bordered { border: 1px solid var(--line); }
.stack-tight { gap: 0.5rem; }
.bg-soft { background: var(--bg-soft); }

/* Skip link: visible only when focused with the keyboard */
.skip-link { position: absolute; left: var(--gutter-l); top: -4rem; z-index: 30; background: var(--purple); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 10px 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0; }
