/* Myyntisivu (index.html ja en/index.html) — app.css:n rakenne ja Meetsko-brändi
   (Manrope: otsikot 800, leipäteksti 500). Brändiarvot ovat nyt myös app.css:ssä;
   tämän tiedoston muuttujat ovat samat. */
:root {
  --navy: #0E2240; --ink: #1B3A6B; --sky: #8FB3E8; --mint: #2BB39A; --paper: #F5F7FA;
  --nav-bg: var(--navy); --page-bg: var(--paper);
  --text: var(--navy); --text-muted: #4A5A75; --text-faint: #7D8AA0;
  --line: #D5DCE6; --line-soft: #E6EBF2;
  --primary: var(--ink); --primary-hover: #142F58; --primary-soft: #EAEFF6;
  --free-bg: #DDF4EF; --free-line: var(--mint); --free-text: #157461;
  --ok: #1E8F7B; --ok-soft: #DDF4EF;
  --mono: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}
body { background: var(--surface); font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif; font-weight: 500; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 800; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
h2.sec-h { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 16px; max-width: 760px; }
.sec-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0; max-width: 680px; }
section { padding: 96px 0; }
section[id] { scroll-margin-top: 64px; }

/* Yläpalkki */
.app-nav { position: sticky; top: 0; z-index: 40; }
.landing-links { display: flex; gap: 4px; margin-left: 8px; }
.landing-links a { color: #C9D6EA; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.landing-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .login-link { color: #C9D6EA; font-size: 14px; text-decoration: none; }
.nav-cta .login-link:hover { color: #fff; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.lang-switch a { color: #8FA0BA; text-decoration: none; padding: 4px 6px; border-radius: 5px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta a.btn { background: #fff; color: var(--nav-bg); border-color: #fff; padding: 9px 14px; }
.nav-cta a.btn:hover { background: #EAEFF6; border-color: #EAEFF6; }

/* Hero */
.hero { background: linear-gradient(var(--nav-bg) 0 calc(100% - 220px), var(--page-bg) calc(100% - 220px)); color: #fff; padding: 80px 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 20%, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font-size: 58px; font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-lead { font-size: 19px; line-height: 1.6; color: #C9D6EA; max-width: 640px; margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-ctas a.btn { padding: 14px 20px; font-size: 15px; }
.hero-ctas a.btn.light { background: #fff; color: var(--nav-bg); border-color: #fff; }
.hero-ctas a.btn.light:hover { background: #EAEFF6; }
.hero-ctas a.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.hero-ctas a.btn.ghost:hover { background: rgba(255,255,255,0.06); }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #A9B8CF; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--mint); flex: none; }
.hero-stage { position: relative; margin-top: 56px; }

/* Tuotekuva: staattinen jäljitelmä projekti.html:n kalenterikortista */
.mock { position: relative; z-index: 1; background: var(--surface); color: var(--text); border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(4,14,30,0.35), 0 4px 14px rgba(4,14,30,0.12); overflow: hidden; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mock-title { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.mock-title .role-badge { font-size: 11px; }
.mock-meta { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.mock-seg { display: inline-flex; background: #EAEFF6; border-radius: 8px; padding: 3px; font-size: 12.5px; }
.mock-seg span { padding: 5px 10px; border-radius: 6px; color: var(--text-muted); }
.mock-seg span.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(14,34,64,0.12); }
.mock-scroll { overflow-x: auto; }
.mock-grid { display: grid; grid-template-columns: 236px 1fr; min-width: 760px; padding-right: 22px; }
.m-name { height: 52px; display: flex; align-items: center; gap: 11px; padding-left: 22px; border-top: 1px solid var(--line-soft); }
.m-line { height: 52px; position: relative; border-top: 1px solid var(--line-soft); }
.m-line .lane { position: absolute; left: 0; right: 0; top: 13px; bottom: 13px; }
.m-ruler-name { height: 44px; display: flex; align-items: center; padding-left: 22px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.m-ruler { height: 44px; position: relative; border-bottom: 1px solid var(--line); }
.m-ruler span { position: absolute; bottom: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); transform: translateX(-2px); }
.m-whole { background: var(--surface-muted); height: 60px; border-top: none; border-bottom: 1px solid var(--line); }
.m-line.m-whole .lane { top: 13px; bottom: 13px; }
.m-grp { height: 40px; display: flex; align-items: center; gap: 8px; padding-left: 22px; font-size: 12.5px; font-weight: 600; border-top: 1px solid var(--line-soft); }
.m-grp .count { color: var(--text-faint); font-weight: 400; }
.m-grp-line { height: 40px; border-top: 1px solid var(--line-soft); }
.m-hours { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 10% 100%; }
.m-avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 600; box-sizing: border-box; }
.m-avatar.group { border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.m-avatar.group svg { width: 15px; height: 15px; }
.m-avatar.pending { background: #fff; border: 2px dashed var(--warn); color: var(--warn); }
.m-who { display: flex; flex-direction: column; min-width: 0; }
.m-who b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-whole + .m-whole b, .m-name.m-whole b { font-weight: 600; }
.m-who small { font-size: 11.5px; color: var(--text-muted); }
.m-who small.grp { color: var(--primary); }
.m-who small.warn { color: var(--warn); }
.b { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--busy); }
.b.strong { background: var(--busy-strong); }
.f { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--free-bg); border: 1px solid var(--free-line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--free-text); white-space: nowrap; overflow: hidden; }
.na { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 4px; display: flex; align-items: center; padding-left: 12px; font-size: 12px; color: var(--text-muted); background: repeating-linear-gradient(135deg, #F1F3F6 0 8px, #E6E9EE 8px 16px); }
.now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--primary); z-index: 3; }
.now i { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-style: normal; font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 3px; }
.pick { position: absolute; top: 44px; bottom: 0; border: 2px solid var(--primary); border-radius: 6px; background: rgba(27,58,107,0.06); z-index: 4; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(27,58,107,0.22); } 50% { box-shadow: 0 0 0 6px rgba(27,58,107,0); } }
.pick-card { position: absolute; z-index: 5; top: 58px; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(14,34,64,0.16); padding: 14px; font-size: 12.5px; }
.pick-card .pc-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.pick-card .pc-t { font-size: 14px; font-weight: 600; margin: 4px 0 2px; }
.pick-card .pc-s { color: var(--text-muted); }
.pick-card .pc-btn { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: #fff; border-radius: 7px; padding: 8px; font-weight: 600; }
.pick-card .pc-btn svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .pick { animation: none; } }

/* Ongelma */
.problem { background: var(--page-bg); padding-top: 72px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.cmp h3 { margin: 0 0 18px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.cmp.before h3 .dot { background: var(--busy-strong); }
.cmp.after h3 .dot { background: var(--free-line); }
.cmp h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.cmp ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.cmp li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.5; color: var(--text); }
.cmp li:first-child { border-top: none; padding-top: 0; }
.cmp li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--text-faint); padding-top: 2px; }
.cmp.before li { color: var(--text-muted); }
.cmp-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); }
.cmp.after .cmp-foot { color: var(--ok); }

/* Miten toimii */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; align-items: start; margin-top: 52px; border-top: 1px solid var(--line); }
/* Vaiheet jakavat rivit (subgrid), joten leipätekstit alkavat samalta korkeudelta. */
.step { padding: 32px 32px 0 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { font-size: 13px; color: var(--mint); font-weight: 800; letter-spacing: 0.04em; }
.step h3 { font-size: 19px; margin: 12px 0 10px; letter-spacing: -0.01em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.step .chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }

/* Ominaisuudet */
.features { background: var(--page-bg); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { font-size: 16px; margin: 0 0 8px; }
.feat p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.feat p.tech { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-faint); }

/* Tietosuoja */
.privacy { background: var(--nav-bg); color: #fff; }
.privacy .eyebrow { color: var(--sky); }
.privacy .sec-lead { color: #C9D6EA; }
.privacy-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.data-table { background: #132A4D; border: 1px solid #22395E; border-radius: 14px; overflow: hidden; }
.dt-head { display: grid; grid-template-columns: 1fr 120px; padding: 14px 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #8FA0BA; border-bottom: 1px solid #22395E; }
.dt-row { display: grid; grid-template-columns: 1fr 120px; padding: 14px 22px; align-items: center; font-size: 14.5px; border-top: 1px solid #1B3155; }
.dt-row:first-of-type { border-top: none; }
.dt-row .sub { display: block; font-size: 12.5px; color: #8FA0BA; margin-top: 2px; }
.tag { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag.yes { background: rgba(43,179,154,0.18); color: #7FDCC8; }
.tag.no { background: rgba(232,163,155,0.14); color: #F0B7B0; }
.priv-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.priv-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.55; color: #D9E2EE; }
.priv-points svg { width: 18px; height: 18px; color: var(--mint); margin-top: 3px; }
.priv-points b { color: #fff; font-weight: 600; }
.priv-link { display: inline-block; margin-top: 32px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--sky); padding-bottom: 2px; }
.priv-link:hover { color: var(--sky); }

/* Käyttötapaukset */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.use { border-top: 2px solid var(--primary); padding-top: 18px; }
.use h3 { font-size: 15.5px; margin: 0 0 8px; }
.use p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.use .meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); margin-top: 12px; }

/* UKK */
.faq { background: var(--page-bg); }
.faq-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--text-muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }

/* Ota yhteyttä */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.contact-card { background: var(--page-bg); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.contact-card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.contact-card p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--primary); text-decoration: none; word-break: break-all; }
.contact-mail svg { width: 22px; height: 22px; flex: none; color: var(--mint); }
.contact-mail:hover { text-decoration: underline; }
.contact-co { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
/* Viisi ankkurilinkkiä ei mahdu kapeampaan yläpalkkiin. */
@media (max-width: 1140px) { .landing-links { display: none; } }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* CTA ja alatunniste */
.cta { padding: 88px 0; }
.cta-box { background: var(--primary); color: #fff; border-radius: 18px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 0 0 60px rgba(255,255,255,0.03), 0 0 0 120px rgba(255,255,255,0.02); pointer-events: none; }
.cta-box h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -0.015em; }
.cta-box p { margin: 0; color: #C9D6E8; font-size: 16px; line-height: 1.6; max-width: 560px; }
.cta-box .hero-ctas { position: relative; z-index: 1; }
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--text-muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .brand { color: var(--text); font-size: 15px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Tietosuojaseloste (tietosuojaseloste.html ja en/privacy-policy.html) */
.policy-head { background: var(--nav-bg); color: #fff; padding: 64px 0 48px; }
.policy-head .eyebrow { color: var(--sky); }
.policy-head h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.policy-head p { color: #C9D6EA; font-size: 16px; line-height: 1.6; margin: 0; max-width: 720px; }
.policy-head .meta { margin-top: 18px; font-size: 13.5px; color: #A9B8CF; }
.policy { padding: 48px 0 80px; background: var(--page-bg); }
.policy-body { max-width: 860px; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.policy-body h2 { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 12px; scroll-margin-top: 80px; }
.policy-body h3 { font-size: 16px; margin: 24px 0 8px; scroll-margin-top: 80px; }
.policy-body p { margin: 0 0 14px; }
.policy-body ul, .policy-body ol { margin: 0 0 14px; padding-left: 22px; }
.policy-body li { margin: 4px 0; }
.policy-body a { color: var(--ink); }
.policy-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 8px; }
.policy-toc p { font-weight: 700; margin: 0 0 8px; }
.policy-toc ol { columns: 2; column-gap: 32px; margin: 0; font-size: 14.5px; }
.policy-toc a { text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }
.policy-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.policy-table th { background: var(--primary-soft); font-weight: 700; font-size: 13.5px; }
.policy-table tr:last-child td { border-bottom: none; }
.policy-scroll { overflow-x: auto; }
.policy-note { background: var(--free-bg); border-left: 3px solid var(--mint); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 16px; }

@media (max-width: 1000px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .privacy-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .landing-links { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16.5px; }
  h2.sec-h { font-size: 26px; }
  .sec-lead { font-size: 15.5px; }
  .compare, .steps, .feat-grid, .uses { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: none; }
  .step + .step { border-top: 1px solid var(--line); }
  .hero-stage { margin-top: 40px; }
  .pick-card { display: none; }
  .mock-grid { grid-template-columns: 150px 1fr; min-width: 620px; }
  .m-name, .m-grp, .m-ruler-name { padding-left: 14px; }
  .m-who small { display: none; }
  .cta-box { grid-template-columns: 1fr; padding: 32px 24px; }
  .cta-box h2 { font-size: 24px; }
  .nav-cta .login-link { display: none; }
  .dt-head, .dt-row { grid-template-columns: 1fr 96px; padding-left: 16px; padding-right: 16px; }
  .policy-head { padding: 40px 0 32px; }
  .policy-head h1 { font-size: 30px; }
  .policy-toc ol { columns: 1; }
  .policy-table { min-width: 520px; }
}
