/* Priimo showcase — one page, three chapters: editor, apps, support. */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/manrope-vf-latin.woff2) format("woff2");
}

:root {
  --brand: #0057a3;
  --brand-deep: #004080;
  --ink: #111827;
  --navy: #001a33;
  --navy-deep: #001226;
  --muted: #5b6472;
  --bg: #ffffff;
  --tint: #f4f8ff;
  --tint2: #e6f0fa;
  --border: #e5e7eb;
  --sky: #7db8ff;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r: 16px;
  --r-lg: 22px;
  --space-section: clamp(88px, 6vw + 52px, 148px);
  --shadow-soft: 0 18px 40px -26px rgba(0, 40, 90, .22);
  --shadow-lift: 0 26px 54px -30px rgba(0, 40, 90, .3);
  --shadow-deep: 0 40px 90px -50px rgba(0, 16, 38, .75);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 { letter-spacing: -.025em; font-weight: 800; }
h1, h2 { line-height: 1.05; }
h3 { line-height: 1.25; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.band-navy :focus-visible, .hero :focus-visible, .foot :focus-visible {
  outline-color: #9ecbff;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: var(--brand);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding: var(--space-section) 0; }

.band-tint { background: var(--tint); }
.band-navy { background: var(--navy); color: #fff; overflow: hidden; }
.band-navy h2, .band-navy h3 { color: #fff; }

/* ------------------------------------------------------------ typography */

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-dark { color: var(--sky); }

h1 { font-size: clamp(34px, 4.3vw, 52px); }
h2 { font-size: clamp(28px, 3.3vw, 42px); }
h3 { font-size: clamp(18px, 1.4vw, 21px); }

.lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 56ch;
}
.lede-dark { color: rgba(255, 255, 255, .78); }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-head h2 { margin: 16px 0 18px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, color .25s, border-color .25s, translate .3s var(--ease);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:hover { translate: 0 -2px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, #0a66b5, #003c72);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 87, 163, .55);
}
.btn-primary:hover { box-shadow: 0 18px 44px -10px rgba(0, 87, 163, .7); }

.btn-dark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
}
.btn-dark:hover { background: rgba(255, 255, 255, .18); }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--tint2); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  color: #fff;
  transition: color .35s;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, .84);
  transition: color .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: #fff; }

.nav.is-solid {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.nav.is-solid .brand { color: var(--ink); }
.nav.is-solid .nav-links a { color: #3f4855; }
.nav.is-solid .nav-links a:hover { color: var(--brand); }
.nav.is-solid .nav-links .btn { color: #fff; }

@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
}

/* --------------------------------------------------- parallax background */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 78% 6%, rgba(59, 130, 246, .42), transparent 60%),
    radial-gradient(50% 52% at 10% 94%, rgba(0, 87, 163, .5), transparent 62%),
    linear-gradient(180deg, #00264d, #001a33 55%, #001226);
}
.hero-wash-soft {
  background:
    radial-gradient(70% 60% at 20% 0%, rgba(59, 130, 246, .3), transparent 62%),
    linear-gradient(180deg, #001a33, #00264d 60%, #001226);
}

.par { will-change: transform; }

.glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 62%);
}
.glow-a { top: -14vw; right: -10vw; }
.glow-b { bottom: -18vw; left: -12vw; background: radial-gradient(circle, rgba(0, 87, 163, .3), transparent 64%); }
.glow-c { top: -12vw; left: -8vw; }
.glow-d { bottom: -16vw; right: -10vw; background: radial-gradient(circle, rgba(125, 184, 255, .16), transparent 62%); }

.waves {
  position: absolute;
  top: -40px;
  right: -120px;
  width: min(1100px, 92vw);
  height: 620px;
  opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 500' fill='none'%3E%3Cpath d='M-20 140 C 180 60, 380 220, 560 150 S 860 60, 940 120' stroke='rgba(125,184,255,.18)' stroke-width='1.5'/%3E%3Cpath d='M-20 220 C 180 140, 380 300, 560 230 S 860 140, 940 200' stroke='rgba(125,184,255,.12)' stroke-width='1.5'/%3E%3Cpath d='M-20 300 C 180 220, 380 380, 560 310 S 860 220, 940 280' stroke='rgba(125,184,255,.08)' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask-image: radial-gradient(80% 80% at 60% 40%, #000, transparent 78%);
  mask-image: radial-gradient(80% 80% at 60% 40%, #000, transparent 78%);
}
.waves-b { top: auto; bottom: -60px; left: -140px; right: auto; transform: scaleY(-1); }

.mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 120%;
  background-image:
    linear-gradient(rgba(125, 184, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 184, 255, .07) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 76%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 76%);
}
.mesh-b { -webkit-mask-image: radial-gradient(60% 70% at 80% 70%, #000, transparent 74%);
  mask-image: radial-gradient(60% 70% at 80% 70%, #000, transparent 74%); }

.sec-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 87, 163, .09), transparent 66%);
}
.blob-a { top: -8vw; right: -14vw; }
.blob-b { bottom: -12vw; left: -14vw; background: radial-gradient(circle, rgba(59, 130, 246, .12), transparent 66%); }

/* ---------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-1 { transition-delay: .07s; }
.reveal-2 { transition-delay: .14s; }
.reveal-3 { transition-delay: .21s; }
.reveal-4 { transition-delay: .28s; }
.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: clamp(112px, 14vh, 150px) 0 clamp(48px, 7vh, 80px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  width: 100%;
}
.hero h1 { margin: 26px 0 0; }
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(100deg, #7db8ff, #b9d9ff 55%, #7db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .8);
  max-width: 46ch;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .68);
}
.star { color: #ffc857; }

.hero-chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: clamp(44px, 6vh, 76px) auto 0;
  max-width: var(--maxw);
  padding-inline: var(--gutter);
}
.chip {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, .04);
}

/* ---------------------------------------------------- editor mock window */

.hero-visual { position: relative; z-index: 2; }
.float { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.win {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  color: var(--ink);
}
.win-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: #f2f5f9;
  border-bottom: 1px solid var(--border);
}
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3dae4; }
.win-body { padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 14px; }
.win-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.win-field {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
  background: #fff;
  transition: border-color .35s, box-shadow .35s, background .35s;
}
.win-field.is-active {
  border-color: var(--brand);
  background: var(--tint);
  box-shadow: 0 0 0 3px rgba(0, 87, 163, .12);
}
.win-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.win-value { font-size: 15px; font-weight: 700; line-height: 1.4; }
.win-value-dim {
  font-weight: 600;
  color: var(--muted);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.win-actions { display: flex; gap: 10px; }
.win-btn {
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.win-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.win-hint { font-size: 12.5px; color: var(--muted); }

/* ----------------------------------------------------------------- stats */

.stats-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 20ch; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(22px, 2.5vw, 30px);
  box-shadow: var(--shadow-soft);
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { translate: 0 -6px; box-shadow: var(--shadow-lift); }
.stat-n {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--brand);
}
.stat-l { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------- editori */

.editori { background: #fff; }
.ed-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}
.ed-copy h2 { margin: 16px 0 18px; }

.feature-list {
  counter-reset: feat;
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  gap: 4px;
}
.feature {
  counter-increment: feat;
  position: relative;
  padding: 24px 0 24px 62px;
  border-top: 1px solid var(--border);
}
.feature:last-child { border-bottom: 1px solid var(--border); }
.feature::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brand);
  background: var(--tint);
  border-radius: 999px;
  padding: 4px 11px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }

.ed-visual { position: relative; }
.ed-sticky { position: sticky; top: 116px; }
.win-lg { max-width: 480px; margin-inline: auto; }

/* ----------------------------------------------------------- sovellukset */

.sovellukset .wrap { position: relative; z-index: 2; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  padding: clamp(22px, 2.4vw, 30px);
  transition: translate .4s var(--ease), background .4s, border-color .4s;
}
.app:hover {
  translate: 0 -6px;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(125, 184, 255, .4);
}
.app-mark { color: var(--sky); font-size: 13px; }
.app h3 { margin: 12px 0 8px; }
.app p { color: rgba(255, 255, 255, .72); font-size: 15px; margin-bottom: 16px; }
.app-tag {
  display: inline-block;
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  border: 1px solid rgba(125, 184, 255, .34);
  border-radius: 999px;
  padding: 5px 12px;
}

.app-demo {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}
.app-demo-copy p { color: rgba(255, 255, 255, .72); margin-top: 10px; font-size: 15px; }
.app-slot {
  min-height: 220px;
  border-radius: var(--r);
  border: 1px dashed rgba(125, 184, 255, .34);
  background:
    repeating-linear-gradient(135deg, rgba(125, 184, 255, .05) 0 12px, transparent 12px 24px);
}

/* ------------------------------------------------------------------ tuki */

.tuki .wrap { position: relative; z-index: 1; }
.tuki-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}
.steps { counter-reset: step; display: grid; gap: clamp(14px, 1.6vw, 20px); }
.step {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(22px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px) 76px;
  box-shadow: var(--shadow-soft);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: clamp(22px, 2.4vw, 28px);
  top: clamp(22px, 2.4vw, 28px);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66b5, #003c72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

.tuki-side { position: sticky; top: 116px; }
.sla {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-deep);
}
.sla-n {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--sky);
}
.sla-l { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .74); }
.sla hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin: 26px 0; }

/* ------------------------------------------------------------------- cta */

.cta { text-align: center; }
.cta-in { position: relative; z-index: 2; max-width: 820px; }
.cta h2 { margin: 16px 0 18px; }
.cta .lede { margin-inline: auto; }
.cta-btns { margin-top: 34px; }

.contact {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: clamp(28px, 3vw, 40px);
}
.contact dt {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 6px;
}
.contact dd { font-size: 16px; color: rgba(255, 255, 255, .88); font-weight: 700; }
.contact a { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact a:hover { border-bottom-color: #fff; }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 52px 0 44px; }
.foot-in { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.foot-brand { font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -.02em; }
.foot-legal { font-size: 13.5px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .ed-grid { grid-template-columns: 1fr; }
  .ed-sticky { position: static; }
  .win-lg { max-width: 100%; }
  .tuki-grid { grid-template-columns: 1fr; }
  .tuki-side { position: static; }
  .app-demo { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: 108px; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .par { transform: none !important; }
  .btn:hover, .stat:hover, .app:hover { translate: none; }
}
