/* RCS.fi: yhteinen tyylitiedosto. Värit: musta ja logon sininen. Ei keltaista eikä oranssia. */
:root {
  --ink: #0b1220;
  --ink-2: #1f2a3d;
  --muted: #566176;
  --line: #e1e6ef;
  --soft: #f4f6fa;
  --blue: #1f5fd6;
  --blue-logo: #2a6fdb;
  --blue-dark: #163f94;
  --blue-50: #edf3ff;
  --blue-100: #dbe7ff;
  --green: #137a3a;
  --green-50: #e8f6ee;
  --red: #b42318;
  --red-50: #fdecea;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Ylätunniste */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.94); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: flex-end; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1; position: relative; padding-top: 10px; }
.logo:hover { color: var(--ink); }
.logo .waves { position: absolute; width: 22px; height: 14px; left: 37px; top: -1px; }
.logo .tld { color: var(--blue-logo); font-weight: 800; font-size: 1.15rem; margin-left: 2px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--blue); color: #fff; }

@media (max-width: 900px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 8px; }
  .nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px 4px 9px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.9rem; padding: 6px 10px; white-space: nowrap; flex: none; }
  body { font-size: 17px; }
  .nav a.nav-cta { order: -1; margin: 0 6px 0 0; }
}

/* Painikkeet */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem; padding: 13px 22px; border-radius: 10px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-100); border-color: var(--blue-100); color: var(--ink); }
.cta { text-align: center; }
.cta .section-intro { margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Etusivun nosto */
.hero { padding: 64px 0 72px; background: radial-gradient(1100px 520px at 85% 10%, var(--blue-50), transparent 70%), #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 36em; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Puhelinkuva (pelkkää HTML:ää ja CSS:ää) */
.phone { width: 100%; max-width: 340px; margin: 0 auto; background: var(--ink); border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(11,18,32,0.45); }
.phone-screen { background: #fff; border-radius: 32px; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-logo), var(--blue-dark)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; flex: none; }
.sender { font-weight: 700; font-size: 0.95rem; line-height: 1.2; display: flex; align-items: center; gap: 5px; }
.sender small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.verified { width: 15px; height: 15px; flex: none; }
.chat { padding: 16px 14px 18px; display: grid; gap: 10px; background: var(--soft); }
.bubble { background: #fff; border-radius: 18px 18px 18px 6px; padding: 10px 13px; font-size: 0.88rem; line-height: 1.45; max-width: 88%; box-shadow: 0 1px 2px rgba(11,18,32,0.06); }
.card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(11,18,32,0.08); max-width: 92%; }
.card-img { height: 104px; background: linear-gradient(135deg, #cfe0ff 0%, #8fb3f5 55%, #2a6fdb 100%); position: relative; }
.card-img::after { content: ""; position: absolute; left: 18px; bottom: 16px; width: 56px; height: 40px; border-radius: 6px; background: rgba(255,255,255,0.85); box-shadow: 64px -10px 0 -4px rgba(255,255,255,0.55); }
.card-body { padding: 11px 13px 6px; font-size: 0.86rem; line-height: 1.4; }
.card-body strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.card-body span { color: var(--muted); }
.card-actions { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.card-actions span { display: block; text-align: center; color: var(--blue); font-weight: 700; font-size: 0.86rem; padding: 9px; }
.card-actions span + span { border-top: 1px solid var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { border: 1.5px solid var(--blue-100); color: var(--blue); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 0.8rem; font-weight: 700; }
.phone-caption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Osiot */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #e8edf6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #9cc0ff; }
.section h2:first-child { margin-top: 0; }
.section-intro { max-width: 760px; color: var(--ink-2); font-size: 1.1rem; }
.section-dark .section-intro { color: #c7d1e3; }
@media (max-width: 700px) { .section { padding: 48px 0; } }

.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile h3 { margin-top: 0; }
.tile p:last-child { margin-bottom: 0; }
.section-dark .tile { background: var(--ink-2); border-color: #2c3950; }
a.tile { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.tile:hover { border-color: var(--blue); transform: translateY(-2px); color: inherit; }
a.tile .more { color: var(--blue); font-weight: 700; font-size: 0.95rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Sivun otsikko alasivuilla */
.page-head { padding: 52px 0 28px; background: radial-gradient(900px 360px at 90% 0%, var(--blue-50), transparent 70%), #fff; border-bottom: 1px solid var(--line); }
.page-head p.lead { margin-bottom: 0; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.article { padding: 40px 0 72px; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.updated { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* Taulukot */
.table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; width: 30%; }

.badge { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-yes { background: var(--green-50); color: var(--green); }
.badge-no { background: var(--red-50); color: var(--red); }
.badge-info { background: var(--blue-50); color: var(--blue-dark); }

/* Huomiolaatikko */
.note { border-left: 4px solid var(--blue); background: var(--blue-50); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0; }
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 800; display: block; margin-bottom: 4px; }

/* Tilannekatsaus etusivulla */
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.status div { background: var(--ink-2); border: 1px solid #2c3950; border-radius: var(--radius); padding: 20px; }
.status strong { display: block; color: #fff; font-size: 1.05rem; margin: 8px 0 4px; }
.status p { margin: 0; font-size: 0.95rem; color: #c7d1e3; }
@media (max-width: 800px) { .status { grid-template-columns: 1fr; } }

/* Usein kysyttyä */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 12px; color: var(--ink-2); }

/* Lomake */
.form { display: grid; gap: 16px; margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form { padding: 20px; } }
label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
label .opt { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid #c9d2e0; border-radius: 9px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue-100); border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 700; margin: 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* Alatunniste */
.site-footer { background: var(--ink); color: #b9c3d6; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #e8edf6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 10px; display: block; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #263248; padding-top: 18px; font-size: 0.85rem; color: #8d99b0; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
