/* ============================================================
   Avustar — jaettu tyylitiedosto (index.html + en/ + tietosuojaseloste)
   Paletti: syvä navy ink + lämmin meripihka accent. Fontti: self-hostattu Montserrat.
   ============================================================ */

/* @font-face url() resolvoituu suhteessa TÄHÄN tiedostoon (juuri) → toimii myös /en/-sivulla */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin.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;
}

:root {
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ink: #0f1b2d;          /* syvä laivastonsininen — pääteksti + tumma pohja */
  --ink-soft: #33415c;
  --muted: #5b6b85;
  --line: #e5e9f2;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --card: #ffffff;

  --accent: #c07a1e;       /* lämmin meripihka/kulta */
  --accent-strong: #a4661a;
  --accent-tint: #fbf2e4;
  --ok: #1a8f66;

  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 10px 30px rgba(15,27,45,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 80px; }

/* ---- Ylälaidan brändiraita ---- */
.topbar { height: 4px; background: linear-gradient(90deg, var(--accent), var(--ink)); }

/* ---- Navi ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; display: block; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--accent-strong); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right .navlink { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.nav-right .navlink:hover { color: var(--accent-strong); text-decoration: none; }
@media (max-width: 560px) { .nav-right .navlink.opt { display: none; } }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 11px;
  font: 700 .95rem var(--font); border: 0; box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
@media (max-width: 820px) { .menu { display: none; } }

/* ---- Hero ---- */
.hero { padding: 84px 0 56px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 0 0 22px; max-width: 18ch; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 660px; margin: 0 0 26px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.02rem; color: var(--accent-strong); margin-bottom: 26px; }
.hero-link:hover { gap: 10px; text-decoration: none; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-tint); border: 1px solid #f0dcbb; color: var(--accent-strong);
  font-size: .9rem; font-weight: 600; padding: 8px 15px; border-radius: 999px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(26,143,102,.18); }

/* ---- Osiot ---- */
.band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: 68px 0; }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head .kicker { color: var(--accent-strong); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.025em; font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .ico { display: block; margin-bottom: 16px; color: var(--accent-strong); }
.card .ico svg { width: 28px; height: 28px; display: block; }
.card h3 { margin: 0 0 9px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---- Yhteystiedot ---- */
.contact-block { margin-top: 22px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.9; }
.contact-block .name { font-weight: 700; color: var(--ink); }

/* ---- Footer ---- */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer .brand-sm { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
footer .legal { color: var(--muted); font-size: .95rem; line-height: 1.85; }
footer .legal a { color: var(--muted); }
footer .legal a:hover { color: var(--accent-strong); }
footer .disclaimer { margin-top: 14px; font-size: .88rem; color: #8b97ac; max-width: 620px; }
footer .copy { margin-top: 10px; font-size: .82rem; color: #8b97ac; }

/* ---- Dokumenttisivu (tietosuojaseloste / käyttöehdot) ---- */
.doc { max-width: 760px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); max-width: none; margin-bottom: 8px; }
.doc .doc-meta { color: var(--muted); font-size: .92rem; margin: 0 0 32px; }
.doc h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.doc h3 { font-size: 1.02rem; font-weight: 700; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1rem; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .draft-note {
  background: var(--accent-tint); border: 1px solid #f0dcbb; color: var(--accent-strong);
  border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin: 0 0 28px;
}
.doc .todo { background: #fff4f4; border: 1px solid #f3c9c9; color: #9a2b2b; border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 700; }
.doc td { color: var(--ink-soft); }
.doc table a { color: var(--accent-strong); }
